From e80442811e0d0bf5513017dd0bdaad1058663f2b 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 45c7308c0..719ff40a8 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -353,7 +353,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()