feat(tasks): retry failed project tasks

This commit is contained in:
Xiaoxia AI
2026-06-24 09:19:23 +08:00
parent 50858a8810
commit ea3a4c4111
3 changed files with 78 additions and 4 deletions
+5
View File
@@ -20,3 +20,8 @@ export const getProjectTasks = async (projectId: string): Promise<ProjectTaskIte
const response = await apiClient.get(`/projects/${projectId}/tasks`);
return response.data.items;
};
export const retryProjectTask = async (taskType: string, sourceId: string): Promise<ProjectTaskItem> => {
const response = await apiClient.post(`/tasks/${taskType}/${sourceId}/retry`);
return response.data;
};