Skip to main content

pipeline_runs

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

Overview

Namepipeline_runs
TypeResource
Idazure.data_factory.pipeline_runs

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
durationInMsintegerThe duration of a pipeline run.
invokedByobjectEntity that started the pipeline run.
isLatestbooleanIndicates if the recovered pipeline run is the latest in its group.
lastUpdatedstring (date-time)The last updated timestamp for the pipeline run event in ISO8601 format.
messagestringThe message from a pipeline run.
parametersobjectThe full or partial list of parameter name, value pair used in the pipeline run.
pipelineNamestringThe pipeline name.
runDimensionsobjectRun dimensions emitted by Pipeline run.
runEndstring (date-time)The end time of a pipeline run in ISO8601 format.
runGroupIdstringIdentifier that correlates all the recovery runs of a pipeline run.
runIdstringIdentifier of a run.
runStartstring (date-time)The start time of a pipeline run in ISO8601 format.
statusstringThe status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, Canceling, Cancelled

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, factoryName, runIdapi-versionGet a pipeline run by its run ID.
query_by_factoryexecsubscriptionId, resourceGroupName, factoryName, lastUpdatedAfter, lastUpdatedBeforeapi-versionQuery pipeline runs in the factory based on input filter conditions.
cancelexecsubscriptionId, resourceGroupName, factoryName, runIdisRecursive, api-versionCancel a pipeline run by its run ID.

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
factoryNamestringThe factory name.
resourceGroupNamestringThe resource group name.
runIdstringThe pipeline run identifier.
subscriptionIdstringThe subscription identifier.
api-versionstringThe API version.
isRecursivebooleanIf true, cancel all the Child pipelines that are triggered by the current pipeline.

SELECT examples

Get a pipeline run by its run ID.

SELECT
durationInMs,
invokedBy,
isLatest,
lastUpdated,
message,
parameters,
pipelineName,
runDimensions,
runEnd,
runGroupId,
runId,
runStart,
status
FROM azure.data_factory.pipeline_runs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND factoryName = '{{ factoryName }}' -- required
AND runId = '{{ runId }}' -- required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Query pipeline runs in the factory based on input filter conditions.

EXEC azure.data_factory.pipeline_runs.query_by_factory 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@factoryName='{{ factoryName }}' --required,
@api-version='{{ api-version }}'
@@json=
'{
"continuationToken": "{{ continuationToken }}",
"lastUpdatedAfter": "{{ lastUpdatedAfter }}",
"lastUpdatedBefore": "{{ lastUpdatedBefore }}",
"filters": "{{ filters }}",
"orderBy": "{{ orderBy }}"
}'
;