aboutsummaryrefslogtreecommitdiff
path: root/scripts/worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/worker.py')
-rw-r--r--scripts/worker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/worker.py b/scripts/worker.py
index 391f522..13556df 100644
--- a/scripts/worker.py
+++ b/scripts/worker.py
@@ -35,6 +35,7 @@ def update_stdout_stderr(rconn, job_id, bytes_read, stream: str):
rconn.hset(name=job_id, key=stream, value=new_contents)
def update_status(rconn, job_id, status):
+ """Update status of job in redis."""
rconn.hset(name=job_id, key="status", value=status)
def run_job(job, rconn):