Skip to content
Commit Detail

Commit 5d3b5ca

Author
Luís Duarte <lduarte@cloudflare.com> 2024-11-29 16:10:14 +0000
Parents
410b59c
Tree
5a72f24
feat: better define retry delay and step timeout types

Previously, both types were specified as a string, which is not intended
behaviour. We only allow for a specific formatted string - same as
WorkflowSleepDuration.

I've added WorkflowTimeoutDuration and WorkflowDelayDuration for better
DX in the types by reducing confusion (otherwise you would see a
WorkflowSleepDuration in a timeout) - also gives us flexibility if we
need to seperate them later.

While you could think that this could be a breaking change in the types,
we already validate it at runtime.

Files changed

1 file changed~1 modified