feature: Add retry to runScriptByPathAsync (matching the new task retry)
Author: emancipacionCreated Sep 30, 2026Updated Sep 30, 2026
Is this a missing feature or an anti pattern? If it's the second then just ignore it
Now that retries were recently added to task/taskscript in Workflows-as-Code (and already exist on Triggers/Cron), could we also support a retry option for runScriptByPath / runScriptByPathAsync?
example:
await wmill.runScriptByPathAsync("path/to/script", args, { retry: { attempts: 3, delay: 10, backoff: "exponential" } });
Why: Dispatched async background jobs currently fail permanently at 1 run on transient errors (429s, network blips). Allowing retries directly at dispatch or via script settings avoids having to wrap simple scripts in 1-step Flows just for retry logic.
Source: windmill-labs/windmill