Skip to content

Commit 2de9aed

Browse files
authored
[BugFix] Add success condition for result file update in worker (Cloud-CV#4345)
1 parent 231a87b commit 2de9aed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/workers/submission_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def run_submission(
647647
submission.save()
648648

649649
# after the execution is finished, set `status` to finished and hence `completed_at`
650-
if submission_output:
650+
if submission_output and successful_submission_flag:
651651
output = {}
652652
output["result"] = submission_output.get("result", "")
653653
submission.output = output

0 commit comments

Comments
 (0)