mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
framework/instrumentation: handle non-job errors in ManagedCallback
If an error occurs in a ManagedCallback that is invoked outside of a job, re-raise rather than attempting to update the status of the non-existent job.
This commit is contained in:
parent
7cdb32c7f8
commit
9d7f998511
@ -275,7 +275,10 @@ class ManagedCallback(object):
|
||||
if isinstance(e, WorkloadError):
|
||||
context.set_status('FAILED')
|
||||
else:
|
||||
context.set_status('PARTIAL')
|
||||
if context.current_job:
|
||||
context.set_status('PARTIAL')
|
||||
else:
|
||||
raise
|
||||
|
||||
|
||||
# Need this to keep track of callbacks, because the dispatcher only keeps
|
||||
|
Loading…
x
Reference in New Issue
Block a user