Add "run task" button to DeadTasksTable

This commit is contained in:
Ken Hibino
2020-12-14 07:14:10 -08:00
parent d9a3e414b8
commit 903820e6c8
6 changed files with 95 additions and 0 deletions

View File

@@ -268,6 +268,16 @@ export async function deleteRetryTask(
});
}
export async function runDeadTask(
qname: string,
taskKey: string
): Promise<void> {
await axios({
method: "post",
url: `${BASE_URL}/queues/${qname}/dead_tasks/${taskKey}:run`,
});
}
export async function deleteDeadTask(
qname: string,
taskKey: string