Skip to content

Resolve "The WebHook `recent_failures` counter may overflow"

What does this MR do?

Prevents WebHook#recent_failures from overflowing.

This is only necessary while the flag is as yet disabled - when it is enabled, the web-hook will never be executed. But for safety's sake, this still makes sense.

The maximum is set rather low (much lower than the actual maximum value of a smallint): this saves unnecessary DB updates.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #330817 (closed)

Edited by Alex Kalderimis

Merge request reports

Loading