Skip to main content

workflow_runs

Creates, updates, deletes, gets or lists a workflow_runs resource.

Overview

Nameworkflow_runs
TypeResource
Idaws.nova_act.workflow_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ended_atstring (date-time)The timestamp when the workflow run completed execution, if applicable.
log_group_namestringThe CloudWatch log group name for this workflow run's logs. (pattern: <code>[a-zA-Z0-9_/.-]+</code>)
model_idstringThe ID of the AI model being used for this workflow run.
started_atstring (date-time)The timestamp when the workflow run started execution.
statusstringThe current execution status of the workflow run. (RUNNING, SUCCEEDED, FAILED, TIMED_OUT, DELETING)
workflow_run_arnstringThe Amazon Resource Name (ARN) of the workflow run. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):nova-act:[a-z0-9-]+:[0-9]{12}:workflow-definition/[a-zA-Z0-9_-]{1,40}/workflow-run/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
workflow_run_idstringThe unique identifier of the workflow run. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflow_runselectworkflow_definition_name, workflow_run_id, regionRetrieves the current state, configuration, and execution details of a workflow run.
list_workflow_runsselectworkflow_definition_name, regionmaxResults, nextTokenLists all workflow runs for a specific workflow definition with optional filtering and pagination.
create_workflow_runinsertworkflow_definition_name, region, modelId, clientInfoCreates a new execution instance of a workflow definition with specified parameters.
update_workflow_runupdateworkflow_definition_name, workflow_run_id, region, statusUpdates the configuration or state of an active workflow run.
delete_workflow_rundeleteworkflow_definition_name, workflow_run_id, regionTerminates and cleans up a workflow run, stopping all associated acts and sessions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
workflow_definition_namestringThe name of the workflow definition containing the workflow run.
workflow_run_idstringThe unique identifier of the workflow run to delete.
maxResultsintegerThe maximum number of workflow runs to return in a single response.
nextTokenstringThe token for retrieving the next page of results.

SELECT examples

Retrieves the current state, configuration, and execution details of a workflow run.

SELECT
ended_at,
log_group_name,
model_id,
started_at,
status,
workflow_run_arn,
workflow_run_id
FROM aws.nova_act.workflow_runs
WHERE workflow_definition_name = '{{ workflow_definition_name }}' -- required
AND workflow_run_id = '{{ workflow_run_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new execution instance of a workflow definition with specified parameters.

INSERT INTO aws.nova_act.workflow_runs (
modelId,
clientToken,
logGroupName,
clientInfo,
workflow_definition_name,
region
)
SELECT
'{{ modelId }}' /* required */,
'{{ clientToken }}',
'{{ logGroupName }}',
'{{ clientInfo }}' /* required */,
'{{ workflow_definition_name }}',
'{{ region }}'
RETURNING
status,
workflow_run_id
;

UPDATE examples

Updates the configuration or state of an active workflow run.

UPDATE aws.nova_act.workflow_runs
SET
status = '{{ status }}'
WHERE
workflow_definition_name = '{{ workflow_definition_name }}' --required
AND workflow_run_id = '{{ workflow_run_id }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required;

DELETE examples

Terminates and cleans up a workflow run, stopping all associated acts and sessions.

DELETE FROM aws.nova_act.workflow_runs
WHERE workflow_definition_name = '{{ workflow_definition_name }}' --required
AND workflow_run_id = '{{ workflow_run_id }}' --required
AND region = '{{ region }}' --required
;