diff --git a/ui/src/app/views/workflow/run/node/pipeline/spawninfo/spawninfo.component.ts b/ui/src/app/views/workflow/run/node/pipeline/spawninfo/spawninfo.component.ts index b2de5dba7f..bcef584ad4 100644 --- a/ui/src/app/views/workflow/run/node/pipeline/spawninfo/spawninfo.component.ts +++ b/ui/src/app/views/workflow/run/node/pipeline/spawninfo/spawninfo.component.ts @@ -42,7 +42,6 @@ export class WorkflowRunJobSpawnInfoComponent implements OnDestroy, OnInit { @Select(WorkflowState.getSelectedWorkflowNodeJobRun()) nodeJobRun$: Observable; nodeJobRunSubs: Subscription; - currentNodeJobRunID: number; currentJobID: number; jobStatus: string; spawnInfos: String; @@ -100,7 +99,7 @@ export class WorkflowRunJobSpawnInfoComponent implements OnDestroy, OnInit { this.jobStatus = njr.status; this.currentJobID = njr.id; this.variables = njr.parameters; - if (!njr.spawninfos) { + if (!PipelineStatus.isDone(njr.status)) { this.initWorker(); } else { this.spawnInfos = this.getSpawnInfos(njr.spawninfos); @@ -146,7 +145,7 @@ export class WorkflowRunJobSpawnInfoComponent implements OnDestroy, OnInit { workflowName: this._store.selectSnapshot(WorkflowState.workflowSnapshot).name, number: (this._store.selectSnapshot(WorkflowState)).workflowNodeRun.num, nodeRunId: (this._store.selectSnapshot(WorkflowState)).workflowNodeRun.id, - runJobId: this.currentNodeJobRunID, + runJobId: this.currentJobID, }); this.workerSubscription = this.worker.response().subscribe(msg => {