Explorar o código

Always activate scheduler functionality when running the rqworker management command

kkthxbye-code %!s(int64=3) %!d(string=hai) anos
pai
achega
d647983003
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      netbox/extras/management/commands/rqworker.py

+ 2 - 0
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: