From 062c4908c9b24a3260a82846d05cb675b54e432a Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Fri, 27 Sep 2019 15:21:02 -0400 Subject: [PATCH] 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. --- awx/api/views/webhooks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/api/views/webhooks.py b/awx/api/views/webhooks.py index 2f88411746..6bd4ff6983 100644 --- a/awx/api/views/webhooks.py +++ b/awx/api/views/webhooks.py @@ -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, }