[PR #11106] [MERGED] Fixes #11022 - Allow redefining internally used background queues #13743

Closed
opened 2025-12-29 23:20:33 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11106
Author: @kkthxbye-code
Created: 12/5/2022
Status: Merged
Merged: 12/8/2022
Merged by: @jeremystretch

Base: featureHead: 11022-queue_mappings


📝 Commits (2)

  • f3b76d9 Allow redefining internally used queues
  • e56fe85 Add any queues defined in QUEUE_MAPPINGS to RQ_QUEUES

📊 Changes

4 files changed (+28 additions, -2 deletions)

View changed files

📝 docs/configuration/miscellaneous.md (+16 -0)
📝 netbox/extras/models/models.py (+3 -1)
📝 netbox/extras/webhooks.py (+3 -1)
📝 netbox/netbox/settings.py (+6 -0)

📄 Description

Fixes: #11022

Adds the optional setting QUEUE_MAPPINGS.

Usage:

QUEUE_MAPPINGS = {
    'webhook': 'low',
    'report': 'high',
    'script': 'custom-script-queue',
}

I also added a change so that RQ_QUEUES gets updated if the queue defined in QUEUE_MAPPINGS is not defined already.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/11106 **Author:** [@kkthxbye-code](https://github.com/kkthxbye-code) **Created:** 12/5/2022 **Status:** ✅ Merged **Merged:** 12/8/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `11022-queue_mappings` --- ### 📝 Commits (2) - [`f3b76d9`](https://github.com/netbox-community/netbox/commit/f3b76d99f83149a4ca79c802e203b3db1a63e1ca) Allow redefining internally used queues - [`e56fe85`](https://github.com/netbox-community/netbox/commit/e56fe85e3de42fa5ea65f551a222ee5801b46c05) Add any queues defined in QUEUE_MAPPINGS to RQ_QUEUES ### 📊 Changes **4 files changed** (+28 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/miscellaneous.md` (+16 -0) 📝 `netbox/extras/models/models.py` (+3 -1) 📝 `netbox/extras/webhooks.py` (+3 -1) 📝 `netbox/netbox/settings.py` (+6 -0) </details> ### 📄 Description ### Fixes: #11022 Adds the optional setting `QUEUE_MAPPINGS`. Usage: ``` QUEUE_MAPPINGS = { 'webhook': 'low', 'report': 'high', 'script': 'custom-script-queue', } ``` I also added a change so that RQ_QUEUES gets updated if the queue defined in QUEUE_MAPPINGS is not defined already. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:20:33 +01:00
adam closed this issue 2025-12-29 23:20:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13743