---
title: "获取任务状态"
method: GET
path: "/apps/deployment/tasks/{task_id}/status"
tags: ["QuickDeployment"]
---

# 获取任务状态

`GET /apps/deployment/tasks/{task_id}/status`

获取快速发布任务的实时状态信息

## Path parameters

- `task_id` integer, required

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` object — 返回的数据
    - `app_code` string — 应用编码
    - `app_name` string — 应用名称
    - `build_number` integer — 构建编号
    - `duration` integer — 耗时(秒)
    - `end_time` string — 结束时间
    - `environment` string — 环境名称
    - `error_message` string — 错误信息
    - `log_url` string — 日志URL
    - `progress` integer — 进度百分比(0-100)
    - `start_time` string — 开始时间
    - `status` integer — 任务状态: 1=未部署 2=部署中 3=成功 4=异常
    - `status_text` string — 状态文本
    - `task_id` integer — 任务ID
  - `message` string — 提示信息

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/revisions/25cac8835c4c/schema)
