diff --git a/frontend/src/lib/components/FlowStatusViewerInner.svelte b/frontend/src/lib/components/FlowStatusViewerInner.svelte index 3cb9efc08e..820655428f 100644 --- a/frontend/src/lib/components/FlowStatusViewerInner.svelte +++ b/frontend/src/lib/components/FlowStatusViewerInner.svelte @@ -126,7 +126,6 @@ }) if (!deepEqual(job, newJob)) { job = newJob - console.log('LOAD') job?.flow_status && updateStatus(job?.flow_status) dispatch('jobsLoaded', job) } @@ -191,7 +190,6 @@ parent_module: mod['parent_module'] } $durationStatuses[mod.id][job.id] = { started_at } - console.log('A', started_at) } else { $flowModuleStates[mod.id] = { args: job.args, @@ -206,7 +204,6 @@ // retries: $flowStateStore?.raw_flow } $durationStatuses[mod.id][job.id] = { started_at, duration_ms: job['duration_ms'] } - console.log('B', started_at) } } } @@ -392,7 +389,6 @@ } $durationStatuses[modId][job_id] = { started_at } - console.log('C', started_at) } else { $flowModuleStates[modId] = { started_at, @@ -407,7 +403,6 @@ duration_ms: e.detail.duration_ms, isListJob: true } - console.log('D', started_at) $durationStatuses[modId][job_id] = { started_at, duration_ms: e.detail.duration_ms @@ -532,6 +527,7 @@ {#if rightColumnSelect == 'timeline'} x.id)} durationStatuses={$durationStatuses} diff --git a/frontend/src/lib/components/FlowTimeline.svelte b/frontend/src/lib/components/FlowTimeline.svelte index 7f063fdcc7..6ec23ec685 100644 --- a/frontend/src/lib/components/FlowTimeline.svelte +++ b/frontend/src/lib/components/FlowTimeline.svelte @@ -10,6 +10,7 @@ string, Record > + export let flowDone = false let min: undefined | number = undefined let max: undefined | number = undefined @@ -20,7 +21,7 @@ | undefined = undefined let debounced = debounce(() => computeItems(durationStatuses), 30) - $: durationStatuses && debounced() + $: flowDone != undefined && durationStatuses && debounced() export function reset() { min = undefined @@ -48,9 +49,10 @@ nmin = Math.min(nmin, v.started_at) } } - if (v.duration_ms == undefined) { + if (!flowDone && v.duration_ms == undefined) { isStillRunning = true } + if (!isStillRunning) { if (v.started_at && v.duration_ms) { let lmax = v.started_at + v.duration_ms @@ -77,9 +79,10 @@ }) items = nitems min = nmin - max = isStillRunning || cnt < flowModules.length ? undefined : nmax + max = isStillRunning || (cnt < flowModules.length && !flowDone) ? undefined : nmax if (max && min) { total = max - min + total = Math.max(total, 2000) } } diff --git a/frontend/src/lib/components/flows/pickers/PickHubScript.svelte b/frontend/src/lib/components/flows/pickers/PickHubScript.svelte index 0083dda282..7d2177d723 100644 --- a/frontend/src/lib/components/flows/pickers/PickHubScript.svelte +++ b/frontend/src/lib/components/flows/pickers/PickHubScript.svelte @@ -1,7 +1,7 @@ @@ -112,7 +119,10 @@ -{#if items.length > 0 && apps.length > 0} +{#if hubNotAvailable} +
+ +{:else if items.length > 0 && apps.length > 0} {#if items.length == 0}