Skip to main content
Anchor to AutomationWorkflowRun

AutomationWorkflowRun

object

Requires write_automations access scope. Also: The app must have write access to automations and act on behalf of a user.

A production or test run of an automation.

•Boolean

Whether the run has failed steps or a failed trigger hydration, independent of its status. Returns null when the bounded check couldn't establish the answer.

•ID!
non-null

The opaque ID of the run. It identifies the run, not an individual retry attempt.

•AutomationWorkflowRunKind!
non-null

Whether the run is a production run or a test run.

Show enum values
•DateTime

The date and time when the run's summary was last updated.

•DateTime

The date and time when the run started, if available.

•String!
non-null

Availability or resolution state. Valid values:

  • resolved: The run-level fields were read, even if workflowVersion is null.
  • ambiguous: The run's records conflict, so its run-level fields couldn't be resolved.
  • incomplete: The bounded read ended before the run could be resolved.
  • errors_unknown: The read couldn't establish whether the run has errors, so hasErrors is null.
  • access_denied: The run's data isn't readable with the current permissions, so hasErrors is null.
•AutomationWorkflowRunStatus

The lifecycle status of the run. A completed run can still contain failed steps.

Show enum values
•AutomationStepRun

One recorded execution of this run, by an ID that stepRuns returned for it. Returns null for an unknown ID or an ID from another run. Returns an access denied error when the run's step details aren't readable with the current permissions. A TEST run's step details can become searchable before its permission requirements. While the run is still in progress, started less than 4 minutes ago and its requirements aren't searchable, the field is null with an UNAVAILABLE error ("This test run's step details aren't readable yet. Try again."): retry with backoff. After 4 minutes without its requirements, or once the run has finished, missing requirements are an ACCESS_DENIED error; start a new test run instead. PRODUCTION runs never return UNAVAILABLE for this. This read is one of the request's automation run reads. A request makes at most 32, and each read after that returns a BAD_REQUEST error.

Show fields

Arguments

•ID!
required

The ID of the execution.


•AutomationStepRunPage

A bounded, live page of the run's recorded step executions, ordered by step, iteration trail, and execution. Each page reads current data, so retrying a continuation can return a different page. An execution indexed behind a continuation's position appears only after a restart without after: restart a scan that started while a test run was IN_PROGRESS once its status is COMPLETED or FAILED. Returns an access denied error when the run's step details aren't readable with the current permissions. A TEST run's step details can become searchable before its permission requirements. While the run is still in progress, started less than 4 minutes ago and its requirements aren't searchable, the field is null with an UNAVAILABLE error ("This test run's step details aren't readable yet. Try again."): retry with backoff. After 4 minutes without its requirements, or once the run has finished, missing requirements are an ACCESS_DENIED error; start a new test run instead. PRODUCTION runs never return UNAVAILABLE for this. To select input, output, error, logs, condition, or conditionalOutput on the executions, set first to 5 or less. This read is one of the request's automation run reads. A request makes at most 32, and each read after that returns a BAD_REQUEST error.

Show fields

Arguments

•String

The continuation of a previous page for the same run and filters. Omit it to start over and read executions indexed behind its position.

•Int
Default:20

The maximum number of executions to return, from 1 to 100. Work and size budgets can return fewer.

•AutomationStepRunStatus

Return only executions with this effective status.

Show enum values
•String

Return only executions of this step ID from the automation's configuration.


•ID!
non-null

The ID of the automation that the run belongs to. The ID is returned even if the automation was deleted.

•String

The automation version that the run started on, resolved from its earliest recorded step. Returns null when that version can't be established. It's never a later or current version.


Was this section helpful?

•query

Returns one production or test run of an automation, with its run-level fields. Returns null when no run with the ID exists or its automation isn't readable. This read is one of the request's automation run reads. A request makes at most 32, and each read after that returns a BAD_REQUEST error.

Show fields

Arguments

•ID!
required

The ID of the run.



Was this section helpful?