From d647983003e7c0753d29fdec7e308ea8f587b385 Mon Sep 17 00:00:00 2001 From: kkthxbye-code Date: Sun, 16 Oct 2022 13:47:15 +0200 Subject: [PATCH] Always activate scheduler functionality when running the rqworker management command --- netbox/extras/management/commands/rqworker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/extras/management/commands/rqworker.py b/netbox/extras/management/commands/rqworker.py index e2ad5b15c..e1fb6fd11 100644 --- a/netbox/extras/management/commands/rqworker.py +++ b/netbox/extras/management/commands/rqworker.py @@ -14,6 +14,8 @@ class Command(_Command): of only the 'default' queue). """ def handle(self, *args, **options): + # Run the worker with scheduler functionality + options['with_scheduler'] = True # If no queues have been specified on the command line, listen on all configured queues. if len(args) < 1: