status
This commit is contained in:
@@ -144,6 +144,8 @@ GET /api/tasks
|
|||||||
list: [{
|
list: [{
|
||||||
id: 'xxxxx', // 任務ID
|
id: 'xxxxx', // 任務ID
|
||||||
name: 'xxx', // 任務名稱
|
name: 'xxx', // 任務名稱
|
||||||
|
status: 'xxx', // 任務狀態(waiting|running|success|error)
|
||||||
|
progress: 100, // 任務進度(0~100)
|
||||||
data: {}, // 任務數據
|
data: {}, // 任務數據
|
||||||
createdAt: '', // 創建時間
|
createdAt: '', // 創建時間
|
||||||
updatedAt: '', // 更新時間
|
updatedAt: '', // 更新時間
|
||||||
@@ -165,9 +167,9 @@ WebSocket /api/tasks/{task_id}
|
|||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
id: 'xxxx', // 任務ID
|
id: 'xxxx', // 任務ID
|
||||||
// 任務狀態
|
status: 'xxx', // 任務狀態(waiting|running|success|error)
|
||||||
// 任務進度
|
progress: 100, // 任務進度(0~100)
|
||||||
// 返回數據
|
data: {}, // 返回數據
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user