Resource: Execution
The Execution resource contains detailed information of an individual integration execution.
JSON representation |
---|
{ "name": string, "triggerId": string, "executionMethod": enum ( |
Fields | |
---|---|
name |
Auto-generated primary key. |
trigger |
The trigger id of the integration trigger config. If both triggerId and clientId is present, the integration is executed from the start tasks provided by the matching trigger config otherwise it is executed from the default start tasks. |
execution |
The ways user posts this event. |
create |
Output only. Created time of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
Output only. Last modified time of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
direct |
Direct sub executions of the following Execution. |
execution |
Detailed info of this execution. |
request |
Event parameters come in as part of the request. |
response |
Event parameters returned as part of the response. In the case of error, the { "ErrorInfo": { "message": String, "code": Number } } |
cloud |
Cloud Logging details for the integration version |
integration |
Output only. State of the integration version |
snapshot |
Output only. An increasing sequence that is set when a new snapshot is created |
replay |
Output only. Replay info for the execution |
ExecutionMethod
ExecutionMethod Enum
Enums | |
---|---|
EXECUTION_METHOD_UNSPECIFIED |
Default value. |
POST |
Sync post. |
POST_TO_QUEUE |
Async post. |
SCHEDULE |
Async post with schedule time. |
ExecutionDetails
Contains the details of the execution info: this includes the tasks execution details plus the event execution statistics.
JSON representation |
---|
{ "state": enum ( |
Fields | |
---|---|
state |
Status of the execution. |
execution |
List of snapshots taken during the execution. |
attempt |
List of Start and end time of the execution attempts. |
event |
Total size of all eventExecutionSnapshots for an execution |
State
Status of the execution.
Enums | |
---|---|
STATE_UNSPECIFIED |
Default. |
PENDING |
Execution is scheduled and awaiting to be triggered. |
PROCESSING |
Execution is processing. |
SUCCEEDED |
Execution successfully finished. There's no more change after this state. |
FAILED |
Execution failed. There's no more change after this state. |
CANCELLED |
Execution canceled by user. There's no more change after this state. |
RETRY_ON_HOLD |
Execution failed and waiting for retry. |
SUSPENDED |
Execution suspended and waiting for manual intervention. |
ExecutionSnapshot
Contains the snapshot of the execution for a given checkpoint.
JSON representation |
---|
{ "checkpointTaskNumber": string, "executionSnapshotMetadata": { object ( |
Fields | |
---|---|
checkpoint |
Indicates "after which checkpoint task's execution" this snapshot is taken. |
execution |
Metadata of the execution snapshot. |
params |
Parameters used during the execution. |
task |
All of the task execution details at the given point of time. |
ExecutionSnapshotMetadata
Metadata of the execution snapshot.
JSON representation |
---|
{ "taskNumber": string, "task": string, "executionAttempt": integer, "taskAttempt": integer, "taskLabel": string, "ancestorTaskNumbers": [ string ], "ancestorIterationNumbers": [ string ], "integrationName": string } |
Fields | |
---|---|
task |
The task number associated with this snapshot. |
task |
the task name associated with this snapshot. |
execution |
the execution attempt number this snapshot belongs to. |
task |
the task attempt number this snapshot belongs to. |
task |
the task label associated with this snapshot. Could be empty. |
ancestor |
Ancestor task number for the task(it will only be non-empty if the task is under 'private workflow') |
ancestor |
Ancestor iteration number for the task(it will only be non-empty if the task is under 'private workflow') |
integration |
The direct integration which the event execution snapshots belongs to |
TaskExecutionDetails
Contains the details of the execution of this task.
JSON representation |
---|
{ "taskNumber": string, "taskExecutionState": enum ( |
Fields | |
---|---|
task |
Pointer to the task config it used for execution. |
task |
The execution state of this task. |
task |
Status for the current task execution attempt. |
TaskExecutionState
Enum TaskExecutionState.
Enums | |
---|---|
TASK_EXECUTION_STATE_UNSPECIFIED |
Default value. |
PENDING_EXECUTION |
Task is waiting for its precondition tasks to finish to start the execution. |
IN_PROCESS |
Task is under processing. |
SUCCEED |
Task execution successfully finished. There's no more change after this state. |
FAILED |
Task execution failed. There's no more change after this state. |
FATAL |
Task execution failed and cause the whole integration execution to fail immediately. There's no more change after this state. |
RETRY_ON_HOLD |
Task execution failed and waiting for retry. |
SKIPPED |
Task execution skipped. This happens when its precondition wasn't met, or the integration execution been canceled before reach to the task. There's no more changes after this state. |
CANCELLED |
Task execution canceled when in progress. This happens when integration execution been canceled or any other task fall in fatal state. |
PENDING_ROLLBACK |
Task is waiting for its dependency tasks' rollback to finish to start its rollback. |
ROLLBACK_IN_PROCESS |
Task is rolling back. |
ROLLEDBACK |
Task is rolled back. This is the state we will set regardless of rollback succeeding or failing. |
SUSPENDED |
Task is a SuspensionTask which has executed once, creating a pending suspension. |
AttemptStats
Status for the execution attempt.
JSON representation |
---|
{ "startTime": string, "endTime": string } |
Fields | |
---|---|
start |
The start time of the integration execution for current attempt. This could be in the future if it's been scheduled. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end |
The end time of the integration execution for current attempt. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
ReplayInfo
Contains the details of the execution info: this includes the replay reason and replay tree connecting executions in a parent-child relationship
JSON representation |
---|
{ "originalExecutionInfoId": string, "replayedExecutionInfoIds": [ string ], "replayReason": string } |
Fields | |
---|---|
original |
If this execution is a replay of another execution, then this field contains the original execution id. |
replayed |
If this execution has been replayed, then this field contains the execution ids of the replayed executions. |
replay |
reason for replay |
Methods |
|
---|---|
|
Cancellation of an execution and associated sub-executions. |
|
Download the execution. |
|
Lists the results of all the integration executions. |
|
Re-execute an existing execution, with same request parameters and execution strategy. |