Skip to content

Commit

Permalink
Fixes for console logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jan 7, 2025
1 parent 6d0bff4 commit 22bae10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/src/components/JobInformation/JobInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ const stderr_position = computed(() => stderr_text.value.length);
const runTime = computed(() => getJobDuration(job.value));
function jobStateIsTerminal(jobState) {
return jobState && !NON_TERMINAL_STATES.includes(job.value.state);
return jobState && !NON_TERMINAL_STATES.includes(jobState);
}
const jobIsTerminal = computed(() => jobStateIsTerminal(job?.value?.state));
function jobStateIsRunning(jobState) {
return jobState == "running";
}
const jobIsTerminal = computed(() => jobStateIsTerminal(job?.value?.state));
const jobIsRunning = computed(() => jobStateIsRunning(job?.value?.state));
const routeToInvocation = computed(() => `/workflows/invocations/${invocationId.value}`);
const metadataDetail = ref({
Expand Down Expand Up @@ -127,6 +131,7 @@ watch(
<div>
<JobDetailsProvider auto-refresh :job-id="props.job_id" @update:result="updateJob" />
<JobConsoleOutputProvider
v-if="jobIsRunning"
auto-refresh
:job-id="props.job_id"
:stdout_position="stdout_position"
Expand Down

0 comments on commit 22bae10

Please sign in to comment.