You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternative (and wilder) idea: have a promise-like-API
// The run is disconected from the parent workflowconstchildWorkflowReference=awaitstep.workflow.start(internal.example.childWorkflow,childWorkflowArgs)constvalue=awaitstep.workflow.wait(childWorkflowReference)// awaitawaitstep.workflow.allSettled( ... )// returns the statues and values awaitstep.workflow.all( ... )// if any workflow faill, calcel the parent and every child that is runningawaitstep.workflow.any( ... )// get the first that works, cancel every other that is still runningawaitstep.workflow.race( ... )// get the first workflow that ended, cancel every other that is still running// Since the last 3 don't wait for every workflow to stop, there could be a second argument like `{ cancelOthers: true }`
If the parent workflow is canceled, every child workflow should be canceled.
The text was updated successfully, but these errors were encountered: