forked from M-Labs/artiq
1
0
Fork 0

worker: Wait until datasets are written before quitting

Avoids a race condition in worker_impl.py where HDF5 dataset saving was
cut off before it finished for large datasets.
This commit is contained in:
Charles Baynham 2023-05-23 20:42:10 +01:00 committed by Sebastien Bourdeauducq
parent cfc396cbc8
commit 76e93dc591
1 changed files with 1 additions and 1 deletions

View File

@ -307,9 +307,9 @@ def main():
elif action == "analyze": elif action == "analyze":
try: try:
exp_inst.analyze() exp_inst.analyze()
put_completed()
finally: finally:
write_results() write_results()
put_completed()
elif action == "examine": elif action == "examine":
examine(ExamineDeviceMgr, ExamineDatasetMgr, obj["file"]) examine(ExamineDeviceMgr, ExamineDatasetMgr, obj["file"])
put_completed() put_completed()