From 76c3800320b722edcd24b73ed1a9b860f305ecb8 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 8 Apr 2025 12:38:34 -0500 Subject: 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. --- gn3/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gn3/commands.py') 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 -- cgit 1.4.1