From 19824cefba38ee1c81724924cf7c2eff364d6e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AB=E7=84=9A=20=E5=AF=8C=E8=89=AF?= Date: Fri, 9 Dec 2022 16:18:28 +0800 Subject: [PATCH] worker_impl: do not write results without rid (#2020) --- artiq/master/worker_impl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/master/worker_impl.py b/artiq/master/worker_impl.py index 33d34ddf8..149716bb7 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -352,7 +352,10 @@ def main(): exp_inst.analyze() put_completed() finally: - write_results() + # browser's analyze shouldn't write results, + # since it doesn't run the experiment and cannot have rid + if rid is not None: + write_results() elif action == "examine": examine(ExamineDeviceMgr, ExamineDatasetMgr, obj["file"]) put_completed()