From bc78ac2cf926f38ef88309dd1b4288b1b1230b66 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 5 Dec 2023 16:51:47 +0300 Subject: Add missing scripts and update code to invoke them Copy the missing scripts over from GN3 and update them for gn-auth. Update the code to invoke the scripts correctly. Set up correct redis keys for use with the scripts. --- gn_auth/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/commands.py') diff --git a/gn_auth/commands.py b/gn_auth/commands.py index 02bed10..cf79041 100644 --- a/gn_auth/commands.py +++ b/gn_auth/commands.py @@ -64,5 +64,5 @@ 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([f"{sys.executable}", "-m", "scripts.worker", job_queue]) # pylint: disable=[consider-using-with] return cmd_id -- cgit v1.2.3