mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-07 12:42:00 +08:00
Add delete-all action button to DeadTasksTable
This commit is contained in:
@@ -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[]
|
||||
|
Reference in New Issue
Block a user