Skip to content

Are states cleared when a workflow is removed from the "stack"? #528

Answered by rjrjr
zoltish asked this question in General
Discussion options

You must be logged in to vote

The latter, Y's state is lost when you finish a render() call without referencing it, and you start again from scratch the next time.

It's not uncommon for a parent to keep a child workflow "running in the background" by continuing to render the child w/o incorporating its rendering — workflow sessions are cheap. We've also sometimes had a child emit a check point object as output, which the parent can then provide via props to resume work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zoltish
Comment options

Answer selected by rjrjr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants