Explorar el Código

Add any queues defined in QUEUE_MAPPINGS to RQ_QUEUES

kkthxbye-code hace 3 años
padre
commit
d53ddd611b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      netbox/netbox/settings.py

+ 5 - 0
netbox/netbox/settings.py

@@ -645,6 +645,11 @@ RQ_QUEUES = {
     'low': RQ_PARAMS,
 }
 
+# Add any queues defined in QUEUE_MAPPINGS
+RQ_QUEUES.update({
+    queue: RQ_PARAMS for queue in set(QUEUE_MAPPINGS.values()) if queue not in RQ_QUEUES
+})
+
 
 #
 # Plugins