diff options
| author | Frederick Muriuki Muriithi | 2023-11-15 09:29:00 +0300 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2023-11-15 09:29:00 +0300 |
| commit | aae9d6d988867b9b3edba800857830b48668599c (patch) | |
| tree | eb438bb45cea3a63e68e9470afce58b47dd64b4c /scripts/worker.py | |
| parent | fcd4b6fac4296d2b6975e1504dd57d7fc59d3dd5 (diff) | |
| download | gn-uploader-aae9d6d988867b9b3edba800857830b48668599c.tar.gz | |
Linting: Fix linting errors.
Diffstat (limited to 'scripts/worker.py')
| -rw-r--r-- | scripts/worker.py | 1 |
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): |
