[PR #14106] [MERGED] Closes #13334: Record error message on failed jobs #14320

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14106
Author: @jeremystretch
Created: 10/23/2023
Status: Merged
Merged: 10/31/2023
Merged by: @jeremystretch

Base: featureHead: 13334-job-errors


📝 Commits (1)

📊 Changes

9 files changed (+40 additions, -9 deletions)

View changed files

📝 netbox/core/api/serializers.py (+1 -1)
📝 netbox/core/jobs.py (+1 -1)
netbox/core/migrations/0006_job_add_error_field.py (+18 -0)
📝 netbox/core/models/jobs.py (+8 -1)
📝 netbox/core/tables/jobs.py (+1 -1)
📝 netbox/extras/management/commands/runscript.py (+1 -1)
📝 netbox/extras/reports.py (+3 -3)
📝 netbox/extras/scripts.py (+1 -1)
📝 netbox/templates/core/job.html (+6 -0)

📄 Description

Fixes: #13334

  • Add an optional error text field on Job
  • Extend the terminate() method to support passing an error message for failed jobs
  • Update calls to Job.terminate() to pass error message where applicable

🔄 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/14106 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/23/2023 **Status:** ✅ Merged **Merged:** 10/31/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13334-job-errors` --- ### 📝 Commits (1) - [`45b4fdd`](https://github.com/netbox-community/netbox/commit/45b4fdd11a021cfb27cbc507ae76c8317dd279b5) Closes #13334: Record error message on failed jobs ### 📊 Changes **9 files changed** (+40 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/api/serializers.py` (+1 -1) 📝 `netbox/core/jobs.py` (+1 -1) ➕ `netbox/core/migrations/0006_job_add_error_field.py` (+18 -0) 📝 `netbox/core/models/jobs.py` (+8 -1) 📝 `netbox/core/tables/jobs.py` (+1 -1) 📝 `netbox/extras/management/commands/runscript.py` (+1 -1) 📝 `netbox/extras/reports.py` (+3 -3) 📝 `netbox/extras/scripts.py` (+1 -1) 📝 `netbox/templates/core/job.html` (+6 -0) </details> ### 📄 Description ### Fixes: #13334 - Add an optional `error` text field on Job - Extend the `terminate()` method to support passing an error message for failed jobs - Update calls to `Job.terminate()` to pass error message where applicable --- <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:23:48 +01:00
adam closed this issue 2025-12-29 23:23:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14320