Has anyone encountered Workflows failing

Has anyone encountered Workflows failing with the following error: (instance.in_finite_state) Instance reached a finite state, cannot send events to it
10 Replies
avenceslau
avenceslau•2d ago
Hey 👋 , this means that your instance has completed or errored (or was terminated) before you sent your event to it.
Santans
SantansOP•2d ago
Interesting. The Workflow in question doesn't receive events, but instead is supposed to send them. I'd think there would be an error if it failed, no?
avenceslau
avenceslau•2d ago
The caller of sendEvent should receive an error if the instance that should receive the event is in a terminal state. Isn't that the case with yours? (not sure if I understood)
Santans
SantansOP•2d ago
I have parent-child workflows setup, where the parent will spawn other workflows and wait for them to finish with waitForEvent. As far as I can tell, the parent is still waiting when the child fails with that error. See attached for the most recent time I encountered it.
No description
No description
avenceslau
avenceslau•2d ago
Can you send me the instance ids? You can just link me to both dash pages I can get instance ids from there
jordanfinners
jordanfinners•2d ago
Yeah I've had this but it tends to be when one of the workflow internal errors happens
Santans
SantansOP•22h ago
@avenceslau Wanted to followup to see if you had any thoughts
avenceslau
avenceslau•21h ago
Not yet will investigate as soon as I can sorry about that
Santans
SantansOP•20h ago
No worries! Thanks a lot

Did you find this page helpful?