Replies: 1 comment
|
You’ve found a real limitation in the current implementation. The intended shape should be to wrap the This is one of the problems being addressed by #525. That issue is primarily about the performance impact of compiling So, today, there is not a good supported way to handle the timeout while keeping the listener on the parent workflow. Once #525 is implemented, the intended pattern should be an inline Thanks for raising this. This is important additional context for #525 |
Uh oh!
There was an error while loading. Please reload this page.
Hi @mrsimonemms, quick question on signal listens.
I've got the "wait for a signal, but not forever" shape from your approval-timeout example. metadata.timeout bounds the wait nicely, but instead of just failing on timeout I'd like to run a task (mark it overdue, send a reminder, etc.).
The obvious move — wrap the listen in a try and catch the timeout — is exactly what the example warns against, since it pushes the listen into a child workflow the signal never reaches. So I'm not sure where the "on timeout" branch is meant to go:
What's the intended pattern for this today, while keeping the listen top-level?
All reactions