From e256c1f0cc77dc952daa414392840bca66c05907 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 2 Dec 2024 15:48:06 -0600 Subject: 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. --- scripts/rqtl2/entry.py | 1 + 1 file changed, 1 insertion(+) 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, -- cgit v1.2.3