From b9cf07846836b4a12f2cf6be37956871cb1438fb Mon Sep 17 00:00:00 2001 From: Alexander Haase Date: Mon, 29 Jul 2024 23:06:31 +0200 Subject: [PATCH] Revert "Use queue 'low' for system jobs by default" This reverts commit b17b2050df953427769ab6a337c6995ac2a60615. --- docs/plugins/development/background-jobs.md | 2 +- netbox/netbox/settings.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/plugins/development/background-jobs.md b/docs/plugins/development/background-jobs.md index bd463cfc3..f4640147a 100644 --- a/docs/plugins/development/background-jobs.md +++ b/docs/plugins/development/background-jobs.md @@ -48,7 +48,7 @@ A system background job is not bound to any particular NetBox object. A typical The `setup()` method can be used to set up a new scheduled job outside the request-response cycle. It can be safely called from the plugin's ready function and will register the new schedule right after all plugins are loaded and the database is connected. !!! note - The default system background job queue is `low`. It can be changed using the [`QUEUE_MAPPINGS`](../../configuration/miscellaneous.md#queue_mappings) setting when using `None` as model. + Unless otherwise configured, system background jobs use the `default` queue for scheduling. This can be changed using the [`QUEUE_MAPPINGS`](../../configuration/miscellaneous.md#queue_mappings) setting when using `None` as model. #### Example diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 34aae1e69..64fb24f09 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -124,9 +124,7 @@ MEDIA_ROOT = getattr(configuration, 'MEDIA_ROOT', os.path.join(BASE_DIR, 'media' METRICS_ENABLED = getattr(configuration, 'METRICS_ENABLED', False) PLUGINS = getattr(configuration, 'PLUGINS', []) PLUGINS_CONFIG = getattr(configuration, 'PLUGINS_CONFIG', {}) -QUEUE_MAPPINGS = getattr(configuration, 'QUEUE_MAPPINGS', { - None: 'low', -}) +QUEUE_MAPPINGS = getattr(configuration, 'QUEUE_MAPPINGS', {}) REDIS = getattr(configuration, 'REDIS') # Required RELEASE_CHECK_URL = getattr(configuration, 'RELEASE_CHECK_URL', None) REMOTE_AUTH_AUTO_CREATE_GROUPS = getattr(configuration, 'REMOTE_AUTH_AUTO_CREATE_GROUPS', False)