Closed
Description
NetBox version
v3.6.5
Python version
3.10
Steps to Reproduce
- Upload a simple script that executes cleanly. (It doesn't have to do anything.)
- Create a webhook.
- Content types: Extras > Script
- Events: Job executions, job terminations
- URL: Where you have a receiver running (can use the
webhook_receiver
management command locally)
- Ensure the RQ worker process is running.
- Run the script you uploaded and verify that it completes successfully.
Expected Behavior
Two webhooks should be sent: One when the script starts, and another when it ends.
Observed Behavior
The webhook is not triggered for either event. This is because the content type with which the webhook is associated (extras.Script
) differs from the job's object type (extras.ScriptModule
). This can be confirmed by inspecting the completed job under operations > jobs.