From 02da8b8a54918b17ecdc0bd7e7b89ab5e25aaff9 Mon Sep 17 00:00:00 2001 From: Dave Falke Date: Mon, 2 Dec 2024 12:43:34 -0500 Subject: [PATCH] Add api method to get failed job error message --- packages/libs/multi-blast/src/lib/utils/api.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/libs/multi-blast/src/lib/utils/api.ts b/packages/libs/multi-blast/src/lib/utils/api.ts index 6ef4b10362..845fec62ac 100644 --- a/packages/libs/multi-blast/src/lib/utils/api.ts +++ b/packages/libs/multi-blast/src/lib/utils/api.ts @@ -175,6 +175,14 @@ export class BlastApi extends FetchClientWithCredentials { }); } + fetchJobError(jobId: string) { + return this.fetch({ + path: `${JOBS_PATH}/${jobId}/error`, + method: 'GET', + transformResponse: ioTransformer(string), + }); + } + rerunJob(jobId: string) { return this.taggedFetch({ path: `${JOBS_PATH}/${jobId}`,