Skip to content

Eternal orchestrations and replay behavior - clarification #2461

Answered by cgillum
obesser asked this question in Q&A
Discussion options

You must be logged in to vote

The way to accomplish this is to have some flag in your orchestration input that tells you whether you've executed the first activity (the start job). In the initial invocation of your orchestration, this flag should be set to false, ensuring that the first activity runs. As part of the first continueAsNew call, you'd set this flag to true so that all future invocations don't call this first activity again.

Replies: 1 comment 1 reply

Comment options

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

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