Add delete-all action button to DeadTasksTable

This commit is contained in:
Ken Hibino
2020-12-16 06:55:51 -08:00
parent fa231aa713
commit 226cfc3b82
6 changed files with 129 additions and 4 deletions

View File

@@ -307,6 +307,13 @@ export async function batchDeleteDeadTasks(
return resp.data;
}
export async function deleteAllDeadTasks(qname: string): Promise<void> {
await axios({
method: "delete",
url: `${BASE_URL}/queues/${qname}/dead_tasks:delete_all`,
});
}
export async function batchRunDeadTasks(
qname: string,
taskKeys: string[]