mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Always activate scheduler functionality when running the rqworker management command
This commit is contained in:
parent
1d9808a92a
commit
d647983003
@ -14,6 +14,8 @@ class Command(_Command):
|
|||||||
of only the 'default' queue).
|
of only the 'default' queue).
|
||||||
"""
|
"""
|
||||||
def handle(self, *args, **options):
|
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 no queues have been specified on the command line, listen on all configured queues.
|
||||||
if len(args) < 1:
|
if len(args) < 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user