Skip to main content

executions

Creates, updates, deletes, gets or lists an executions resource.

Overview

Nameexecutions
TypeResource
Idgoogle.run.executions

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The unique name of this Execution.
annotationsobjectOutput only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
cancelledCountinteger (int32)Output only. The number of tasks which reached phase Cancelled.
completionTimestring (google-datetime)Output only. Represents time when the execution was completed. It is not guaranteed to be set in happens-before order across separate operations.
conditionsarrayOutput only. The Condition of this Execution, containing its readiness status, and detailed error information in case it did not reach the desired state.
createTimestring (google-datetime)Output only. Represents time when the execution was acknowledged by the execution controller. It is not guaranteed to be set in happens-before order across separate operations.
creatorstringOutput only. Email address of the authenticated creator.
deleteTimestring (google-datetime)Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
etagstringOutput only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
expireTimestring (google-datetime)Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.
failedCountinteger (int32)Output only. The number of tasks which reached phase Failed.
generationstring (int64)Output only. A number that monotonically increases every time the user modifies the desired state.
jobstringOutput only. The name of the parent Job.
labelsobjectOutput only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels
launchStagestringThe least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.
logUristringOutput only. URI where logs for this execution can be found in Cloud Console.
observedGenerationstring (int64)Output only. The generation of this Execution. See comments in reconciling for additional information on reconciliation process in Cloud Run.
parallelisminteger (int32)Output only. Specifies the maximum desired number of tasks the execution should run at any given time. Must be <= task_count. The actual number of tasks running in steady state will be less than this number when ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism.
reconcilingbooleanOutput only. Indicates whether the resource's reconciliation is still in progress. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.
retriedCountinteger (int32)Output only. The number of tasks which have retried at least once.
runningCountinteger (int32)Output only. The number of actively running tasks.
satisfiesPzsbooleanOutput only. Reserved for future use.
startTimestring (google-datetime)Output only. Represents time when the execution started to run. It is not guaranteed to be set in happens-before order across separate operations.
succeededCountinteger (int32)Output only. The number of tasks which reached phase Succeeded.
taskCountinteger (int32)Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
templateobjectOutput only. The template used to create tasks for this execution. (id: GoogleCloudRunV2TaskTemplate)
uidstringOutput only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
updateTimestring (google-datetime)Output only. The last-modified time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, jobsId, executionsIdGets information about an Execution.
listselectprojectsId, locationsId, jobsIdpageSize, pageToken, showDeletedLists Executions from a Job. Results are sorted by creation time, descending.
deletedeleteprojectsId, locationsId, jobsId, executionsIdvalidateOnly, etagDeletes an Execution.
export_statusexecprojectsId, locationsId, jobsId, executionsId, executionsId1Read the status of an image export operation.
cancelexecprojectsId, locationsId, jobsId, executionsIdCancels an Execution.

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
executionsIdstring
executionsId1string
jobsIdstring
locationsIdstring
projectsIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
showDeletedboolean
validateOnlyboolean

SELECT examples

Gets information about an Execution.

SELECT
name,
annotations,
cancelledCount,
completionTime,
conditions,
createTime,
creator,
deleteTime,
etag,
expireTime,
failedCount,
generation,
job,
labels,
launchStage,
logUri,
observedGeneration,
parallelism,
reconciling,
retriedCount,
runningCount,
satisfiesPzs,
startTime,
succeededCount,
taskCount,
template,
uid,
updateTime
FROM google.run.executions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND jobsId = '{{ jobsId }}' -- required
AND executionsId = '{{ executionsId }}' -- required;

DELETE examples

Deletes an Execution.

DELETE FROM google.run.executions
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND jobsId = '{{ jobsId }}' --required
AND executionsId = '{{ executionsId }}' --required
AND validateOnly = '{{ validateOnly }}'
AND etag = '{{ etag }}';

Lifecycle Methods

Read the status of an image export operation.

EXEC google.run.executions.export_status 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@jobsId='{{ jobsId }}' --required,
@executionsId='{{ executionsId }}' --required,
@executionsId1='{{ executionsId1 }}' --required;