mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-07 20:52:02 +08:00
Add run-all dead tasks action button to DeadTasksTable
This commit is contained in:
@@ -328,6 +328,13 @@ export async function batchRunDeadTasks(
|
||||
return resp.data;
|
||||
}
|
||||
|
||||
export async function runAllDeadTasks(qname: string): Promise<void> {
|
||||
await axios({
|
||||
method: "post",
|
||||
url: `${BASE_URL}/queues/${qname}/dead_tasks:run_all`,
|
||||
});
|
||||
}
|
||||
|
||||
export async function listSchedulerEntries(): Promise<ListSchedulerEntriesResponse> {
|
||||
const resp = await axios({
|
||||
method: "get",
|
||||
|
Reference in New Issue
Block a user