[PR #19424] [MERGED] feat(core): Add queue_name parameter to Job.enqueue() method #15648

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19424
Author: @dianbofa
Created: 5/7/2025
Status: Merged
Merged: 5/8/2025
Merged by: @arthanson

Base: mainHead: issue-18419


📝 Commits (1)

  • 23d1213 feat(core): Add queue_name parameter to Job.enqueue() method

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 netbox/core/models/jobs.py (+2 -1)

📄 Description

  • Added the queue_name parameter to Job.enqueue(), allowing users to specify an existing queue name.

  • If queue_name is not provided, the default model queue will be used.

  • This enhancement improves job scheduling flexibility by enabling targeted execution in specific queues.

Fixes: #18419


🔄 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/19424 **Author:** [@dianbofa](https://github.com/dianbofa) **Created:** 5/7/2025 **Status:** ✅ Merged **Merged:** 5/8/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `issue-18419` --- ### 📝 Commits (1) - [`23d1213`](https://github.com/netbox-community/netbox/commit/23d1213c9c415cab1329b69e7e6c93d43e140223) feat(core): Add queue_name parameter to Job.enqueue() method ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/models/jobs.py` (+2 -1) </details> ### 📄 Description - Added the queue_name parameter to Job.enqueue(), allowing users to specify an existing queue name. - If queue_name is not provided, the default model queue will be used. - This enhancement improves job scheduling flexibility by enabling targeted execution in specific queues. <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #18419 <!-- Please include a summary of the proposed changes below. --> --- <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-30 00:23:12 +01:00
adam closed this issue 2025-12-30 00:23:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15648