about summary refs log tree commit diff
path: root/gn3/commands.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-04-08 12:38:34 -0500
committerFrederick Muriuki Muriithi2025-04-08 13:46:01 -0500
commit76c3800320b722edcd24b73ed1a9b860f305ecb8 (patch)
tree085ffc370e360cdda1e4c1c48f3555a3bfd45897 /gn3/commands.py
parentfca547664fcbc96340c5646267cc40d419d4ae57 (diff)
downloadgenenetwork3-76c3800320b722edcd24b73ed1a9b860f305ecb8.tar.gz
sheepdog.worker: Pass in the queue name on the CLI
Pass in the name of the queue where the jobs are queued to the worker.
Diffstat (limited to 'gn3/commands.py')
-rw-r--r--gn3/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py
index f55f3c4..71a4d27 100644
--- a/gn3/commands.py
+++ b/gn3/commands.py
@@ -180,7 +180,8 @@ def run_async_cmd(
     """A utility function to call `gn3.commands.queue_cmd` function and run the
     worker in the `one-shot` mode."""
     cmd_id = queue_cmd(conn, job_queue, cmd, email, env)
-    subprocess.Popen([f"{sys.executable}", "-m", "sheepdog.worker"]) # pylint: disable=[consider-using-with]
+    subprocess.Popen( # pylint: disable=[consider-using-with]
+        [sys.executable, "-m", "sheepdog.worker", "--queue-name", job_queue])
     return cmd_id