aboutsummaryrefslogtreecommitdiff
path: root/wqflask/scripts/run_external.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/scripts/run_external.py')
-rw-r--r--wqflask/scripts/run_external.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/scripts/run_external.py b/wqflask/scripts/run_external.py
index 3cefa033..b44a6db7 100644
--- a/wqflask/scripts/run_external.py
+++ b/wqflask/scripts/run_external.py
@@ -101,7 +101,7 @@ def run_job(redis_conn: Redis, job_id: UUID):
returncode = process.returncode
set_meta(redis_conn, job_id, "completion-status",
("success" if returncode == 0 else "error"))
- set_meta(redis_conn, job_id, "return-code", "error")
+ set_meta(redis_conn, job_id, "return-code", returncode)
return process.returncode
def run_job_parser(parent_parser):