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 GitHub
parent 12649720f1
commit e80442811e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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()