Check feature flag before setting webhook failed state
What does this MR do and why?
This MR check a feature flag before setting the failure states of webhooks.
Setting the webhook failure state is part of the disable failed webhooks feature, which is currently disabled.
A badly behaving webhook has the potential to cause a lot of errors while we attempt to set this failure state &6913 (comment 1129247235) but the errors are likely to go away once the flag is enabled as the offending webhook will be prevented from executing (as frequently).
Related:
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Luke Duncalfe