Webhook Retrying on Build Success — Duplicate Execution of Long-Running Function

I’ve been using a custom background function triggered by the “build succeeded” webhook, and it’s been working reliably for years. However, starting yesterday, I’ve noticed that the webhook is now retrying while my function is still running. This causes the function to execute multiple times in parallel, resulting in duplicated work and unintended side effects.

I understand this behavior might be due to the function taking a bit longer to complete, but this retry logic wasn’t a problem until recently. I recall seeing this behavior years ago, but it had since been resolved.

  1. Was there any recent change to the webhook retry behavior or timeout thresholds?
  2. What workaround do you recommend to ensure the webhook does not re-trigger while my background function is still running?

Let me know what steps I can take on my end.

site id: 016eb9fb-9264-4080-9b0f-c1cb0038ab80

I’ve routed this request to our helpdesk, we’ll follow up via email.