aboutsummaryrefslogtreecommitdiff
path: root/gn3/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/commands.py')
-rw-r--r--gn3/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py
index e5558fe..4b0d62d 100644
--- a/gn3/commands.py
+++ b/gn3/commands.py
@@ -52,9 +52,9 @@ Returns the name of the specific redis hash for the specific task.
unique_id = ("cmd::"
f"{datetime.now().strftime('%Y-%m-%d%H-%M%S-%M%S-')}"
f"{str(uuid4())}")
+ conn.rpush(job_queue, unique_id)
for key, value in {"cmd": cmd, "result": "", "status": "queued"}.items():
conn.hset(name=unique_id, key=key, value=value)
- conn.rpush(job_queue, unique_id)
if email:
conn.hset(name=unique_id, key="email", value=email)
return unique_id