Home > cloud189-sdk-docs > CloudClient > checkTaskStatus
CloudClient.checkTaskStatus() method
检测任务状态
Signature:
checkTaskStatus(type: string, taskId: string, maxAttempts?: number, interval?: number): Promise<{
successedFileIdList?: number[];
taskId: string;
taskStatus: number;
}>;
Parameters
Parameter | Type | Description |
---|---|---|
type | string | 任务类型 |
taskId | string | 任务Id |
maxAttempts | number | (Optional) 重试次数 |
interval | number | (Optional) 重试间隔 |
Promise<{ successedFileIdList?: number[]; taskId: string; taskStatus: number; }>