From 2de9aed5723bf3a0a59d3c395bb4f77db43bdb09 Mon Sep 17 00:00:00 2001 From: Gunjan Chhablani Date: Fri, 19 Apr 2024 17:17:44 -0400 Subject: [PATCH] [BugFix] Add success condition for result file update in worker (#4345) --- scripts/workers/submission_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/workers/submission_worker.py b/scripts/workers/submission_worker.py index e1060d010d..3e7f6ebcce 100644 --- a/scripts/workers/submission_worker.py +++ b/scripts/workers/submission_worker.py @@ -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