ensure that all actions play at least once

This commit is contained in:
Sam Machin
2025-04-15 11:44:13 +01:00
parent 87195b6444
commit 9bbc76df12

View File

@@ -51,7 +51,7 @@ class ActionHookDelayProcessor extends Emitter {
this.logger.debug({opts}, 'ActionHookDelayProcessor#init');
this.actions = opts.actions;
this.retries = opts.retries || 0;
this.retries = Math.max((opts.retries || 1), opts.actions.length);
this.noResponseTimeout = opts.noResponseTimeout;
this.noResponseGiveUpTimeout = opts.noResponseGiveUpTimeout;
this.giveUpActions = opts.giveUpActions;