Skip to main content

Automation failures - adjustable thresholds and notifications

You can enable personal notifications for each Automation, so you are alerted to any failed runs, and can fix the Automation ASAP. Define after how many failed runs an Automation is disabled

Written by Carly Hammond
Updated today

Summary

  • In the App Center, you can view if each Automation has run recently, and whether the runs were successful or failed, and you can also see if an Automation is disabled

  • You can optionally change the failure threshold for an Automation, meaning it can fail more (or fewer) times in a day before it's automatically disabled

  • To ensure you know about any issues right away, you can enable notifications for each Automation, to alert you if Automation runs fail and/or Automations are automatically disabled due to repeated failures

  • As with other notifications, you can view them in Planhat (in the "Notifications" Home feature), and choose whether you would also like to receive them externally (e.g. via email)

  • Once you're aware of any failures, you can resolve any Automation setup issues, and enable the Automation again if required

Who is this article for?

  • Planhat Users who are building/managing Automations for their organization (e.g. Tech/Ops)

Series

This article is part of a series on Automations:


Article contents


Introduction

Automations rarely encounter issues. When they do, it's often because the Automation was incorrectly set up. If any of your Automation runs do fail, it's important that you're aware, so you can address any configuration issues.

By default, when you're viewing your list of Automations in the App Center, you can see at a glance whether each Automation has run successfully or unsuccessfully recently, and whether an Automation is disabled (which can happen if an Automation is repeatedly failing).

You can choose to enable personal notifications for each Automation if you would like to be alerted when the Automation has a failed run or is automatically disabled, rather than needing to check the App Center. It's really quick and easy to turn these notifications on. The notifications can be viewed in the Planhat UI, and you can also receive them externally (e.g. via email) depending on your personal notification preferences in Planhat.

You can also optionally adjust (within each Automation's settings) how many failures are allowed before an Automation is automatically disabled.

📚 Further reading

Check out our separate article on troubleshooting Automation failures, including details about Automation logs, here.


Default: Automation failures without notifications

Even without turning on specific notifications to alert you about Automation run failures, you can see in Planhat if an Automation run has failed, and Planhat will automatically disable Automations that repeatedly fail.

By default, Planhat will ...

  • ... show failed Automation runs (executions) in the Planhat UI for the specific Automation

    • In the App Center, you can get an overview of all your Automations, and in the "7D health" column you can see whether each Automation has run successfully or unsuccessfully in the past 7 days. (Green means the last run was successful, red means it's only ever failed, and orange means it was previously successful but then failed)

      Click the image to view it enlarged

    • If you click on any Automation to open it up, click into the "Runs" tab for Custom Automations or "Logs" tab for Templated Automations, and click into the step details, you can view failed runs/steps in red, together with any error messages. Check out our separate article here on troubleshooting with Automation logs

  • ... and disable an Automation after 10 failed runs (executions) in any 24-hour period - this is to avoid repeatedly running an Automation that isn't set up correctly

    • You can optionally adjust this value to up 200 for each individual Automation; we describe this in further detail below


Custom: notifications about Automation failures

How to enable the notifications

You can choose to receive notifications if an Automation run fails or an Automation is disabled. These notifications are personal to you (as a Planhat User), and should be configured individually for each Automation - this means you can be notified about Automations you are responsible for, for example.

  1. In App Center, click on the Automation that you would like to be notified about

  2. Click on the third tab - the "Data" tab - see example screenshots below

    Templated Automation

    Custom Automation


    ​Whether you're in a Templated or Custom Automation, you will see that notifications have their own separate section within this tab, with a tooltip if you mouse over the "i": "Notifications are user-specific. Changing it applies only to you." As the tooltip explains, adjusting these toggle switches only affects notifications for your own User only. Anyone with access to the Automation can toggle them on, and everyone who's done so will receive the notifications

  3. As you can see in the screenshots above, there are two notification toggle switches that you can choose to enable/disable (the default being disabled):

    • "Failed Notifications": be notified whenever the specific Automation fails. By default, you'll be notified a maximum of 10 times in any 24-hour period, after which point the Automation will be disabled automatically (see the second type of Automation notification you can toggle on) and will require manual reactivation. (Note that this value can be changed from 10; see here for details)

    • "Automation Disabled": be notified whenever the specific Automation is automatically disabled, which by default is after 10 failed runs in any 24-hour period. (Note that this value can be changed from 10; see here for details)

    Although you can control these independently, if you would like to be notified about an Automation, we recommend that you enable both toggle switches.

What the notifications look like

You can read all about notifications in upgraded Planhat (ws.planhat.com) in general here. You can view notifications within Planhat in the "Notifications" Home feature (shown in the first screenshot below), and you can configure how you receive additional external notifications in your User Profile (shown in the second screenshot below).

Click the image to view it enlarged

Here's what the notifications can look like in the "Notifications" Home feature (with both "failed" and "disabled" notifications turned on for an Automation). In this example you can see repeated notifications about the Automation failing, letting you know that if it keeps failing it will be disabled, and then the final notification stating that the Automation has been disabled.

Click the image to view it enlarged

Here's the same thing in notification emails:


Custom: adjusting the daily failure threshold

As we have mentioned, by default each Automation will be automatically disabled if it fails 10 times on a single day (24-hour period), to avoid scenarios where incorrectly-configured Automations are running repeatedly despite not working.

However, in some circumstances, you may want the failure threshold to be higher. This is especially for useful for Enterprise organizations with Automations that process large data ingestions or bulk syncs, where a handful of failures shouldn't block the rest of your runs from successfully executing.

In this case, you can configure a custom failure threshold for each individual Automation. The maximum you can set for each Automation is 200 failures a day (for performance reasons).

📌 Important to note

At time of writing, this functionality is available for Custom Automations but not Templated Automations, although it is expected to be added for Templated Automations in future.

To set this, open up your choice of Custom Automation, and click on the "Data" tab. Within "Data", in the "Attributes" section, you will see a "Daily failure threshold" that you can type into (remembering that the maximum allowed value is 200), and then you press "Save" to confirm. All this is shown in the screenshot below.

Click the image to view it enlarged

You will see your new failure threshold referenced in any notifications - example shown below (where the daily failure threshold was set to 100):

Click the image to view it enlarged


Re-enabling an Automation if it's been automatically disabled

If an Automation has automatically been disabled because it failed 10 (or the custom set number of) times in a day, you should troubleshoot it (using the guidance in this separate article), and then once you have fixed your Automation and you're ready for it to start running again, simply enable it via the relevant toggle switch for that Automation in the App Center.

Click the image to view it enlarged

Did this answer your question?