aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-02 15:48:06 -0600
committerFrederick Muriuki Muriithi2024-12-02 15:48:06 -0600
commite256c1f0cc77dc952daa414392840bca66c05907 (patch)
tree33b8212df69c2e665bdad4fa6aed9d19f2d7d542
parent687b8858b1e8eaee727fa573d7e3f670b4d11f89 (diff)
downloadgn-uploader-e256c1f0cc77dc952daa414392840bca66c05907.tar.gz
Change from 'pending' to 'started' on entry to script.
Update the status of the job from 'pending' to 'started' at the entry-point of the script.
-rw-r--r--scripts/rqtl2/entry.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/rqtl2/entry.py b/scripts/rqtl2/entry.py
index b45e1dc..bd8f0b4 100644
--- a/scripts/rqtl2/entry.py
+++ b/scripts/rqtl2/entry.py
@@ -34,6 +34,7 @@ def build_main(
with (Redis.from_url(args.redisuri, decode_responses=True) as rconn,
database_connection(args.databaseuri) as dbconn):
fqjobid = jobs.job_key(args.redisprefix, args.jobid)
+ rconn.hset(fqjobid, "status", "started")
logger.addHandler(setup_redis_logger(
rconn,
fqjobid,