MCPcopy Create free account
hub / github.com/c76d3656e/rscholar / getTaskStatus

Function getTaskStatus

front/src/api/client.js:35–44  ·  view source on GitHub ↗
(taskId)

Source from the content-addressed store, hash-verified

33 * @returns {Promise<Object>} Task status response
34 */
35export 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

Callers 3

fetchTaskStatusMethod · 0.90
startPollingMethod · 0.90
pollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected