Преглед на файлове

Always activate scheduler functionality when running the rqworker management command

kkthxbye-code преди 3 години
родител
ревизия
d647983003
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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: