Automation Runs

An Automation Run corresponds to the execution of an Automation's Action in response to a specific Trigger Event and records the result of that execution, such as the response from an API request or an error message.

Getting Automation Run Results#

Via onAutomationRunResults callback#

The onAutomationRunResults option in your Rollout Project allows you to define a callback to be called after an Automation Run execution. It can be used for example for posting errors to your app monitoring service, or to sync results to your system.

Check the Framework API Reference to find out more about the context object passed in.

Example:

export const config = setupRollout({
// Other options like `apps` here...
onAutomationRunResults({ execution, automation, triggerEvent }) {
if (execution.output.status !== "SUCCESS") {
// e.g. report to your Sentry
}
},
});

Fetching Automation Runs via API#

The GET /api/automation-runs endpoint allows you to fetch Automation Runs via the Rest API.

Find out more in the REST API Reference.