When a workflow fails, you can configure a “failure workflow” to run using thefailureWorkflow
parameter. By default, three parameters are passed:
- reason
- workflowId: use this to pull the details of the failed workflow.
- failureStatus
You can also use the Workflow Status Listener:
- Set the workflowStatusListenerEnabled field in your workflow definition to true which enables notifications.
- Add a custom implementation of the Workflow Status Listener. Refer this.
- This notification can be implemented in such a way as to either send a notification to an external system or to send an event on the conductor queue to complete/fail another task in another workflow as described here.
Refer to this documentation to extend conductor to send out events/notifications upon workflow completion/failure.