hatchet
hatchet copied to clipboard
bug(engine): Steps Remain in Running State After Worker Restart with Unawaited registerWorkflow
Steps to reproduce:
-
Start a worker without awaiting for the response from
registerWorkflowasync function main() { const worker = await hatchet.worker('example-worker'); worker.registerWorkflow(workflow); worker.start(); } NOTE: the worker does not have any actions assigned -
trigger an event to the workflow. this will immediately spawn
-
fix the worker (add the async) and restart
-
trigger a new event.
Both the initial event and all subsequent events are stuck in a running state.
Expected behavior: The initial step should fail with no workers available. Future steps should be picked up by the worker.