aboutsummaryrefslogtreecommitdiff
path: root/scripts/worker.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-08-04 08:51:15 +0300
committerFrederick Muriuki Muriithi2022-08-04 08:51:15 +0300
commit3da6848381b6103fbb58eeab8d7051cba0bded58 (patch)
treefd20aa2d8c73638b72a7667504582f0146aa182f /scripts/worker.py
parent7bd9116019afe4aed369c5dfe69496abc6867381 (diff)
downloadgn-uploader-3da6848381b6103fbb58eeab8d7051cba0bded58.tar.gz
Implement data insertion
- Hook up external data insertion script to webserver code - Provide rudimentary status indication - Generalise some job creation details
Diffstat (limited to 'scripts/worker.py')
-rw-r--r--scripts/worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/worker.py b/scripts/worker.py
index 879442a..03751d2 100644
--- a/scripts/worker.py
+++ b/scripts/worker.py
@@ -54,7 +54,7 @@ def run_job(job, rconn):
os.remove(stderrpath)
return process.poll()
- except Exception as exc:
+ except Exception as exc:# pylint: disable=[broad-except,unused-variable]
update_stdout_stderr(
traceback.format_exc().encode("utf-8"), "stderr", rconn, job_id)
print(traceback.format_exc(), file=sys.stderr)