From eb65bb8764e56b517b2a49fb396ba45ef57be222 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Tue, 29 Oct 2024 12:47:17 -0500 Subject: [PATCH] [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 --- client/src/components/JobInformation/JobInformation.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/JobInformation/JobInformation.vue b/client/src/components/JobInformation/JobInformation.vue index 759e59b97418..7d1cade4942a 100644 --- a/client/src/components/JobInformation/JobInformation.vue +++ b/client/src/components/JobInformation/JobInformation.vue @@ -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 });