Просмотр исходного кода

Always activate scheduler functionality when running the rqworker management command

kkthxbye-code 3 лет назад
Родитель
Сommit
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: