[PR #11096] [MERGED] Closes #10945: Enable recurring execution of scheduled reports & scripts #13741

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11096
Author: @jeremystretch
Created: 12/2/2022
Status: Merged
Merged: 12/9/2022
Merged by: @jeremystretch

Base: featureHead: 10945-recurring-jobs


📝 Commits (6)

  • d505c72 Add interval to JobResult
  • 0578089 Accept a recurrence interval when executing scripts & reports
  • f4842ad Merge branch 'feature' into 10945-recurring-jobs
  • 23bd7ce Cleaned up jobs list display
  • 839f99d Schedule next job only if a reference start time can be determined
  • 1ffccda Improve validation for scheduled jobs

📊 Changes

17 files changed (+180 additions, -81 deletions)

View changed files

📝 netbox/dcim/tables/sites.py (+3 -3)
📝 netbox/extras/api/serializers.py (+4 -2)
📝 netbox/extras/api/views.py (+12 -19)
📝 netbox/extras/choices.py (+6 -6)
📝 netbox/extras/filtersets.py (+2 -2)
📝 netbox/extras/forms/reports.py (+14 -0)
📝 netbox/extras/forms/scripts.py (+20 -2)
📝 netbox/extras/migrations/0079_scheduled_jobs.py (+6 -0)
📝 netbox/extras/models/models.py (+27 -17)
📝 netbox/extras/reports.py (+16 -3)
📝 netbox/extras/scripts.py (+19 -1)
📝 netbox/extras/tables/tables.py (+15 -4)
📝 netbox/extras/views.py (+13 -19)
📝 netbox/netbox/navigation/menu.py (+1 -1)
📝 netbox/netbox/tables/columns.py (+19 -0)
📝 netbox/templates/extras/htmx/report_result.html (+2 -1)
📝 netbox/templates/extras/htmx/script_result.html (+1 -1)

📄 Description

Closes: #10945

  • Add an interval field to the JobResult model
  • Extend the UI & API views to record recurrence interval (in minutes) when scheduling jobs
  • Extend workers to automatically reschedule jobs with an interval defined

🔄 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/11096 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/2/2022 **Status:** ✅ Merged **Merged:** 12/9/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `10945-recurring-jobs` --- ### 📝 Commits (6) - [`d505c72`](https://github.com/netbox-community/netbox/commit/d505c723dc4922c96213ecb191d8da18c930bf48) Add interval to JobResult - [`0578089`](https://github.com/netbox-community/netbox/commit/05780891ed98621bb7f2f8a781f22f04a2061a93) Accept a recurrence interval when executing scripts & reports - [`f4842ad`](https://github.com/netbox-community/netbox/commit/f4842ad8db0cb1be4544cdc26be8caf36cf05293) Merge branch 'feature' into 10945-recurring-jobs - [`23bd7ce`](https://github.com/netbox-community/netbox/commit/23bd7ce9a7e6a4517d5103decbfc37763d28fc93) Cleaned up jobs list display - [`839f99d`](https://github.com/netbox-community/netbox/commit/839f99d53795cad701e58627f7502bc802e9db7e) Schedule next job only if a reference start time can be determined - [`1ffccda`](https://github.com/netbox-community/netbox/commit/1ffccdaadc76ecdc30eaff665bd76d97c86d2878) Improve validation for scheduled jobs ### 📊 Changes **17 files changed** (+180 additions, -81 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/tables/sites.py` (+3 -3) 📝 `netbox/extras/api/serializers.py` (+4 -2) 📝 `netbox/extras/api/views.py` (+12 -19) 📝 `netbox/extras/choices.py` (+6 -6) 📝 `netbox/extras/filtersets.py` (+2 -2) 📝 `netbox/extras/forms/reports.py` (+14 -0) 📝 `netbox/extras/forms/scripts.py` (+20 -2) 📝 `netbox/extras/migrations/0079_scheduled_jobs.py` (+6 -0) 📝 `netbox/extras/models/models.py` (+27 -17) 📝 `netbox/extras/reports.py` (+16 -3) 📝 `netbox/extras/scripts.py` (+19 -1) 📝 `netbox/extras/tables/tables.py` (+15 -4) 📝 `netbox/extras/views.py` (+13 -19) 📝 `netbox/netbox/navigation/menu.py` (+1 -1) 📝 `netbox/netbox/tables/columns.py` (+19 -0) 📝 `netbox/templates/extras/htmx/report_result.html` (+2 -1) 📝 `netbox/templates/extras/htmx/script_result.html` (+1 -1) </details> ### 📄 Description ### Closes: #10945 - Add an `interval` field to the JobResult model - Extend the UI & API views to record recurrence interval (in minutes) when scheduling jobs - Extend workers to automatically reschedule jobs with an interval defined --- <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:32 +01:00
adam closed this issue 2025-12-29 23:20:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13741