feat(tasks): retry failed project tasks
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Failing after 2022h11m24s
Deploy / Production Browser E2E (push) Failing after 2022h1m28s
Deploy / Deploy Production (push) Failing after 2022h2m14s

This commit is contained in:
Xiaoxia AI
2026-06-24 09:19:23 +08:00
parent 9ce7098007
commit d31e30c494
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;
};