Skip to content

Commit

Permalink
[BugFix] Add success condition for result file update in worker (#4345)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchhablani authored Apr 19, 2024
1 parent 231a87b commit 2de9aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/workers/submission_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def run_submission(
submission.save()

# after the execution is finished, set `status` to finished and hence `completed_at`
if submission_output:
if submission_output and successful_submission_flag:
output = {}
output["result"] = submission_output.get("result", "")
submission.output = output
Expand Down

0 comments on commit 2de9aed

Please sign in to comment.