Skip to main content

Instance Executions

An execution is a single run of a flow in an instance. Each time a flow is triggered, Prismatic creates an execution, and you can review its step results and logs to debug the instance.

GuideReplay failed executions

Rerun a failed execution with its original payload, from the app or the GraphQL API.

GuideAutomatic execution retry

Retry failed asynchronous executions automatically when a third-party app has a transient issue.

GuideFetching step results programmatically

Query execution step results with the GraphQL API and unpack them.

GuideLogging

View, search, and filter instance logs.

What triggers an execution​

Executions can be triggered by multiple event types:

  1. Scheduled runs via schedule triggers
  2. Webhook invocations (webhook triggers)
  3. Instance deployment or removal events (deployment triggers)

You can trigger a flow within an instance concurrently, resulting in multiple simultaneous executions.

Flows can also invoke other flows within the same instance by calling sibling flows' webhook URLs. Each invocation is a distinct execution.

If an execution fails, or if you need to re-run an execution, you can replay previous executions. To see how many executions are running and queued right now, and how close you are to your concurrent execution limit, see Monitor Execution Load. If a flow's queue backs up with executions you don't want to run, you can cancel the queued executions.

Viewing execution step results​

For debugging and analysis, you can review the results of instance executions. Navigate to the Executions tab on an instance's page to view logs and step outputs for each execution. To view executions for all instances and customers, select Executions from the left-hand sidebar. For a specific customer, open the customer's Executions tab.

Instance execution results in Prismatic app

If an instance fails to complete successfully, you can inspect the input data provided at invocation to assist with debugging.

Fetching step results from the API​

You can access step results via the Prismatic GraphQL API using the executionResult query. Prismatic serializes results with MessagePack, which you can deserialize using the MessagePack library for your preferred language.

For more information: Fetching and Unpacking Step Results

Viewing execution logs​

You can access instance logs from the Logs tab on the instance's page. You can also view logs for all instances via the Logs link in the sidebar, or for a specific customer by selecting their Logs tab.

Use the Search Logs bar at the top of the page to search log messages. Filter logs by severity or date range using the Filter link to the right of the search bar.

Filter instance logs in Prismatic app

For more information, see Logging.