UpdateTaskExecutionStatus
Updates the status of a task execution. Only the environment executing a task execution is expected to call this function.
Use this method to:
- Report execution progress
- Update step status
- Set failure messages
- Provide log URLs
Examples
-
Update execution status:
Updates status with step information.
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68" steps: - id: "step-1" phase: TASK_EXECUTION_PHASE_SUCCEEDED logUrl: "https://logs.gitpod.io/task-123" -
Report failure:
Updates status with failure information.
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68" failureMessage: "Build failed due to missing dependencies" steps: - id: "step-1" phase: TASK_EXECUTION_PHASE_FAILED failureMessage: "npm install failed"
Request body
Response
Success
Changes
Changed in 3 of the 18 revisions of this API.227
- ○
added the new optional request property
steps/items/outputnew-optional-request-property
This revision also has 43 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
request property
steps/items/phasewas restricted to a list of enum valuesrequest-property-became-enum
- ▲
the
steps/items/phaserequest property type/format changed from/tostring/request-property-type-changed
- ●
removed
gitpod.v1.TaskExecutionPhasefrom thesteps/items/phaserequest propertyallOflistrequest-property-all-of-removed
- ○
added the new
TASK_EXECUTION_PHASE_FAILEDenum value to the request propertysteps/items/phaserequest-property-enum-value-added
- ○
added the new
TASK_EXECUTION_PHASE_PENDINGenum value to the request propertysteps/items/phaserequest-property-enum-value-added
- ○
added the new
TASK_EXECUTION_PHASE_RUNNINGenum value to the request propertysteps/items/phaserequest-property-enum-value-added
- ○
added the new
TASK_EXECUTION_PHASE_STOPPEDenum value to the request propertysteps/items/phaserequest-property-enum-value-added
- ○
added the new
TASK_EXECUTION_PHASE_SUCCEEDEDenum value to the request propertysteps/items/phaserequest-property-enum-value-added
- ○
added the new
TASK_EXECUTION_PHASE_UNSPECIFIEDenum value to the request propertysteps/items/phaserequest-property-enum-value-added
- ▲
- ●
removed the optional property
detailfrom the response with thedefaultstatusresponse-optional-property-removed
- ●