From 76e93dc59172dbc608a71c9ed35891744c03eee7 Mon Sep 17 00:00:00 2001 From: Charles Baynham Date: Tue, 23 May 2023 20:42:10 +0100 Subject: [PATCH] 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. --- artiq/master/worker_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/master/worker_impl.py b/artiq/master/worker_impl.py index 0467a8096..d18f9152c 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -307,9 +307,9 @@ def main(): elif action == "analyze": try: exp_inst.analyze() - put_completed() finally: write_results() + put_completed() elif action == "examine": examine(ExamineDeviceMgr, ExamineDatasetMgr, obj["file"]) put_completed()