Automation Workflow Run
Requires 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.
Anchor to FieldsFields
- hasErrors (Boolean)
- id (ID!)
- kind (AutomationWorkflowRunKind!)
- lastUpdated (DateTime)
- startedAt (DateTime)
- state (String!)
- status (AutomationWorkflowRunStatus)
- stepRun (AutomationStepRun)
- stepRuns (AutomationStepRunPage)
- workflowId (ID!)
- workflowVersion (String)
- Anchor to hasErrorshas•Boolean
Errors Whether the run has failed steps or a failed trigger hydration, independent of its status. Returns
nullwhen 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.
- Anchor to kindkind•Automation
Workflow Run Kind! non-null Whether the run is a production run or a test run.
Show enum values
- Anchor to lastUpdatedlast•Date
Updated Time The date and time when the run's summary was last updated.
- Anchor to startedAtstarted•Date
At Time The date and time when the run started, if available.
- Anchor to statestate•String!non-null
Availability or resolution state. Valid values:
resolved: The run-level fields were read, even ifisnull.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.: The read couldn't establish whether the run has errors, soisnull.: The run's data isn't readable with the current permissions, soisnull.
- Anchor to statusstatus•Automation
Workflow Run Status The lifecycle status of the run. A completed run can still contain failed steps.
Show enum values
- Anchor to stepRunstep•Automation
Run Step Run One recorded execution of this run, by an ID that
returned for it. Returnsnullfor 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. ATESTrun'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 isnullwith anUNAVAILABLEerror ("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 anACCESS_DENIEDerror; start a new test run instead.PRODUCTIONruns never returnUNAVAILABLEfor this. This read is one of the request's automation run reads. A request makes at most 32, and each read after that returns aBAD_REQUESTerror.Show fields
- •ID!required
The ID of the execution.
Arguments
- •ID!
- Anchor to stepRunsstep•Automation
Runs Step Run Page 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 wasIN_PROGRESSonce its status isCOMPLETEDorFAILED. Returns an access denied error when the run's step details aren't readable with the current permissions. ATESTrun'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 isnullwith anUNAVAILABLEerror ("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 anACCESS_DENIEDerror; start a new test run instead.PRODUCTIONruns never returnUNAVAILABLEfor this. To selectinput,output,error,logs,condition, oron the executions, setfirstto 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 aBAD_REQUESTerror.Show fields
- Anchor to afterafter•String
The
continuationof a previous page for the same run and filters. Omit it to start over and read executions indexed behind its position.- Anchor to firstfirst•IntDefault:20
The maximum number of executions to return, from 1 to 100. Work and size budgets can return fewer.
- Anchor to statusstatus•Automation
Step Run Status Return only executions with this effective status.
Show enum values
- Anchor to stepIdstep•String
Id Return only executions of this step ID from the automation's configuration.
Arguments
- Anchor to workflowIdworkflow•ID!
Id non-null The ID of the automation that the run belongs to. The ID is returned even if the automation was deleted.
- Anchor to workflowVersionworkflow•String
Version The automation version that the run started on, resolved from its earliest recorded step. Returns
nullwhen that version can't be established. It's never a later or current version.
Anchor to QueriesQueries
- automationWorkflowRun (AutomationWorkflowRun)
- •query
Returns one production or test run of an automation, with its run-level fields. Returns
nullwhen 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 aBAD_REQUESTerror.Show fields
- •ID!required
The ID of the run.
Arguments
- •ID!