trigger.dev
trigger.dev copied to clipboard
[TRI-653] When a Job is canceled, and then retried, a canceled Delay doesn't change state in the UI to in-progress.
Steps to reproduce
- Create a Job that has a delay in it (30 seconds or something short so you can press the cancel button but it doesn't take forever to test)
- Run the Job
- Cancel the Run while the delay is running
- Then press "Rerun" and "Retry"
- The Delay task still says it is canceled and doesn't show the timer counting down (it is actually running)
To fix this the state of the Task needs resetting if it's canceled and rerun.
From SyncLinear.com | TRI-653