(taskId: string)
| 25 | } |
| 26 | |
| 27 | export async function deleteBackgroundTask(taskId: string): Promise<{ status: string }> { |
| 28 | return httpRequest<{ status: string }>(`/api/background-tasks/${encodeURIComponent(taskId)}`, { |
| 29 | method: "DELETE", |
| 30 | }); |
| 31 | } |
| 32 | |
| 33 | export async function clearCompletedBackgroundTasks(): Promise<{ status: string; count: number }> { |
| 34 | return httpRequest<{ status: string; count: number }>("/api/background-tasks/clear-completed", { |
no test coverage detected