forked from M-Labs/artiq
1
0
Fork 0

worker_impl: do not write results without rid (#2020)

This commit is contained in:
Egor Savkin 2022-12-09 16:18:28 +08:00 committed by Sebastien Bourdeauducq
parent 8f3d06a515
commit 19824cefba
1 changed files with 4 additions and 1 deletions

View File

@ -352,6 +352,9 @@ def main():
exp_inst.analyze() exp_inst.analyze()
put_completed() put_completed()
finally: finally:
# 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() write_results()
elif action == "examine": elif action == "examine":
examine(ExamineDeviceMgr, ExamineDatasetMgr, obj["file"]) examine(ExamineDeviceMgr, ExamineDatasetMgr, obj["file"])