Skip to content

Commit

Permalink
[24.0] Fetch invocation id only once on the job info page
Browse files Browse the repository at this point in the history
... instead of polling while the job is non terminal; we only need the id once.

Fixes galaxyproject#18921
  • Loading branch information
ahmedhamidawan committed Oct 29, 2024
1 parent 19811a6 commit eb65bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/JobInformation/JobInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const metadataDetail = ref({
function updateJob(newJob) {
job.value = newJob;
if (newJob) {
if (newJob && !invocationId.value) {
fetchInvocation(newJob.id);
}
}
Expand All @@ -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 });
Expand Down

0 comments on commit eb65bb8

Please sign in to comment.