diff options
author | Frederick Muriuki Muriithi | 2022-12-03 06:43:27 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-12-03 06:43:27 +0300 |
commit | 1a651da72faf987f7e3d0c7ba4c60cafe850c7a0 (patch) | |
tree | 4b9281cbd9b586fdad536540962a4a142f1574aa /wqflask/scripts | |
parent | 585208eca2764e33e70da05875c8e08ccbf91bf1 (diff) | |
download | genenetwork2-1a651da72faf987f7e3d0c7ba4c60cafe850c7a0.tar.gz |
jobs: Add debug UI
* wqflask/scripts/run_external.py: Save the actual return code
* wqflask/wqflask/__init__.py: Use new jobs blueprint
* wqflask/wqflask/api/jobs.py: Add new jobs debug route
* wqflask/wqflask/templates/jobs/debug.html: new template for when job
is found
* wqflask/wqflask/templates/jobs/no-such-job.html: new template for
when the job is not found
Diffstat (limited to 'wqflask/scripts')
-rw-r--r-- | wqflask/scripts/run_external.py | 2 |
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): |