(taskId)
| 33 | * @returns {Promise<Object>} Task status response |
| 34 | */ |
| 35 | export async function getTaskStatus(taskId) { |
| 36 | const response = await fetch(`${API_BASE}/tasks/${taskId}`); |
| 37 | |
| 38 | if (!response.ok) { |
| 39 | const error = await response.text(); |
| 40 | throw new Error(`获取任务状态失败: ${error}`); |
| 41 | } |
| 42 | |
| 43 | return response.json(); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Download CSV results |
no outgoing calls
no test coverage detected