Move & rename extras.webhooks_worker.process_webhook #8900

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

Originally created by @jeremystretch on GitHub (Nov 30, 2023).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Move the existing process_webhook() function, which is responsible for transmitting queued webhooks, from extras.webhooks_worker to extras.webhooks. I'll also propose renaming it to send_webhook(), which IMO better conveys its function.

We can retain a proxy for this function in its current location to provide backward compatibility until the next release. This will ensure any currently queued webhooks continue to be processed successfully after an upgrade.

Justification

Cleanup in the wake of #14132 and clarification of the function's purpose.

Originally created by @jeremystretch on GitHub (Nov 30, 2023). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Move the existing `process_webhook()` function, which is responsible for transmitting queued webhooks, from `extras.webhooks_worker` to `extras.webhooks`. I'll also propose renaming it to `send_webhook()`, which IMO better conveys its function. We can retain a proxy for this function in its current location to provide backward compatibility until the next release. This will ensure any currently queued webhooks continue to be processed successfully after an upgrade. ### Justification Cleanup in the wake of #14132 and clarification of the function's purpose.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:42:39 +01:00
adam closed this issue 2025-12-29 20:42:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8900