Listen for completion of any workflow, from workflow context

I’d like to listen for completion of some external workflow (either error or success) from within my workflow code. Is this possible?

Use case: I’d like to create same level “monitor” workflows, that when given a workflow ID of another running workflow, can monitor if the workflow terminates/errors. To clarify, these “supervisor” workflows may or may not be parents of the target workflows.

I would prefer to do this within the workflow code so I could take advantage of workflow.Go routines when waiting on the blocking future.

This is a pretty frequent feature request. Here is the issue to get this added.

1 Like