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:
Jeff Bradberry
2019-09-27 15:21:02 -04:00
parent b6b70e55fb
commit 062c4908c9

View File

@@ -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,
}