1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Merge pull request #4366 from netbox-community/738-detect-new-releases

Closes #738: Automatically detect new releases
This commit is contained in:
Jeremy Stretch
2020-03-18 14:00:01 -04:00
committed by GitHub
11 changed files with 407 additions and 52 deletions

View File

@@ -0,0 +1,16 @@
from django.conf import settings
from django_rq.management.commands.rqworker import Command as _Command
class Command(_Command):
"""
Subclass django_rq's built-in rqworker to listen on all configured queues if none are specified (instead
of only the 'default' queue).
"""
def handle(self, *args, **options):
# If no queues have been specified on the command line, listen on all configured queues.
if len(args) < 1:
args = settings.RQ_QUEUES
super().handle(*args, **options)