forked from M-Labs/artiq
worker_impl - try/catch for exceptions in notify_run_end to avoid data loss
This commit is contained in:
parent
fdb0668c8a
commit
6f3322ea35
|
@ -362,7 +362,13 @@ def main():
|
|||
write_results()
|
||||
raise
|
||||
finally:
|
||||
device_mgr.notify_run_end()
|
||||
try:
|
||||
device_mgr.notify_run_end()
|
||||
except:
|
||||
# Also write results immediately if the `notify_run_end`
|
||||
# callbacks produce an exception
|
||||
write_results()
|
||||
raise
|
||||
put_completed()
|
||||
elif action == "analyze":
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue