mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Modify the webhook debounce logic
to check if we've already previously run a job with the same webhook GUID plus template id. This will allow organizations to write multiple JT/WFJTs to handle the same set of webhook events.
This commit is contained in:
@@ -134,6 +134,7 @@ class WebhookReceiverBase(APIView):
|
||||
status_api = self.get_event_status_api()
|
||||
|
||||
kwargs = {
|
||||
('job_template_id' if isinstance(obj, JobTemplate) else 'workflow_job_template_id'): obj.id,
|
||||
'webhook_service': obj.webhook_service,
|
||||
'webhook_guid': event_guid,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user