[PR #9473] [MERGED] Fixes #9466 - Clear webhook queue on script failure #13471

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9473
Author: @kkthxbye-code
Created: 6/3/2022
Status: Merged
Merged: 6/17/2022
Merged by: @jeremystretch

Base: developHead: fix-9466


📝 Commits (1)

  • e2eb7fd Clear webhook queue on script failure

📊 Changes

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

View changed files

📝 netbox/extras/management/commands/runscript.py (+3 -2)
📝 netbox/extras/scripts.py (+3 -2)

📄 Description

Fixes: #9466

Clear webhook queue on script failure. Before the script would still generate webhooks even when an exception was thrown in the script. Same fix is applied to the runscript management command. The management command further seemed to generate webhooks when commit was disabled.


🔄 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/9473 **Author:** [@kkthxbye-code](https://github.com/kkthxbye-code) **Created:** 6/3/2022 **Status:** ✅ Merged **Merged:** 6/17/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix-9466` --- ### 📝 Commits (1) - [`e2eb7fd`](https://github.com/netbox-community/netbox/commit/e2eb7fdfb5283e859c7d0ba5960858cf5bfe7629) Clear webhook queue on script failure ### 📊 Changes **2 files changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/management/commands/runscript.py` (+3 -2) 📝 `netbox/extras/scripts.py` (+3 -2) </details> ### 📄 Description ### Fixes: #9466 Clear webhook queue on script failure. Before the script would still generate webhooks even when an exception was thrown in the script. Same fix is applied to the runscript management command. The management command further seemed to generate webhooks when commit was disabled. --- <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:19:03 +01:00
adam closed this issue 2025-12-29 23:19:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13471