temporal
temporal copied to clipboard
Add ability for workflow to wait for completion of an external workflow
Currently, the workflow code can wait for the completion of its child workflow. It is also possible to wait for the completion of any workflow given its id from an external client. Ability waiting for the completion of any workflow from a decider code is missing.
Strawman proposal:
Add a WaitForExternalWorkflowCompletion decision and the corresponding event. Add a WaitForExternalWorkflowCompletionFailed event Add ExternalWorkflowCompleted/Failed/Cancelled/Terminated/TimedOut events. Another option is to have an ExternalWorkflowCompleted event that contains the termination event of the external workflow as a field.
Copied from https://github.com/uber/cadence/issues/656
+1 for this change - it would make it possible to "re-parent" child workflows across continued-as-new parents, which is very useful in batch-like workflows where children take varying amount of time to execute and you don't want to have to wait for all children to complete before moving on to the next chunk in the batch.
+1
This would be extremely helpful as the current mechanisms for a workflow to wait for the completion of an external workflow are all quite messy. I really just want my workflow to go to "sleep" until that external workflow completes.
Is this feature added?
discussed in-depth internally
discussed in-depth internally
We wait with bated breath...
+1