Error handling for failed runs

Hi,
Does anybody here know a way to add to a workflow to trigger a Slack message should the run 'fail'?
Cheers.

Hi @R_Fleming!

This is actually a surprisingly easy thing to implement. :slight_smile: To start, you'll need to configure a Slack resource:

Afterwards, you can add a new Slack resource block into your workflow and identify it as a global error handler:

Note that this block is completely disconnected from the main logic of your workflow. As a global error handler, this block will "catch" errors thrown by any other blocks and execute your desired query upon doing so.

I hope that helps! Don't hesitate to follow up here if you have any additional questions.

2 Likes