Commit eb65bb87 authored by Ahmed Awan's avatar Ahmed Awan
Browse files

[24.0] Fetch invocation id only once on the job info page

... instead of polling while the job is non terminal; we only need the id once.

Fixes https://github.com/galaxyproject/galaxy/issues/18921
parent 19811a66
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ const metadataDetail = ref({

function updateJob(newJob) {
    job.value = newJob;
    if (newJob) {
    if (newJob && !invocationId.value) {
        fetchInvocation(newJob.id);
    }
}
@@ -57,6 +57,7 @@ function filterMetadata(jobMessages) {
    });
}

/** Fetches the invocation for the given job id to get the associated invocation id */
async function fetchInvocation(jobId) {
    if (jobId) {
        const invocation = await invocationForJob({ jobId: jobId });