I want to understand following scenarios in replay:
- when will existing workflow be replayed keeping runId intact?
- when will existing workflow be terminated and new workflow with new runId will be created?
I want to understand following scenarios in replay:
- when will existing workflow be replayed keeping runId intact?
Every time the workflow state needs to be reconstructed the replay is used. Note that this is invisible to the workflow code. So you should program like replay is not happening assuming that the workflow code is deterministic.
- when will existing workflow be terminated and new workflow with new runId will be created?
WorkflowId
is started.terminate
command and a new workflow is started.