From 9bbc76df12ea153ba522e4fa0febc6edfa1c0c48 Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Tue, 15 Apr 2025 11:44:13 +0100 Subject: [PATCH] ensure that all actions play at least once --- lib/utils/action-hook-delay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/action-hook-delay.js b/lib/utils/action-hook-delay.js index 4b18ae3c..641a3df8 100644 --- a/lib/utils/action-hook-delay.js +++ b/lib/utils/action-hook-delay.js @@ -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;