We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3de68 commit 8fa4fd9Copy full SHA for 8fa4fd9
alts/worker/tasks.py
@@ -174,6 +174,7 @@ def set_artifacts_when_stage_has_unexpected_exception(
174
module_name = task_params.get('module_name')
175
module_stream = task_params.get('module_stream')
176
module_version = task_params.get('module_version')
177
+ vm_alive = task_params.get('vm_alive')
178
try:
179
# Wait a bit to not spawn all environments at once when
180
# a lot of tasks are coming to the machine
@@ -236,7 +237,8 @@ def set_artifacts_when_stage_has_unexpected_exception(
236
237
section_name='Unexpected errors during tests',
238
)
239
finally:
- runner.teardown()
240
+ if not vm_alive:
241
+ runner.teardown()
242
summary = defaultdict(dict)
243
if aborted:
244
summary['revoked'] = True
0 commit comments