@@ -30,11 +30,7 @@ import {
3030 WORKSPACE_BRANCH
3131} from '../webview/contract'
3232import { reorderListSubset } from '../../util/array'
33- import {
34- Executor ,
35- ExpShowOutput ,
36- ExperimentStatus
37- } from '../../cli/dvc/contract'
33+ import { Executor , ExpShowOutput , ExecutorStatus } from '../../cli/dvc/contract'
3834import { flattenMapValues } from '../../util/map'
3935import { ModelWithPersistence } from '../../persistence/model'
4036import { PersistenceKey } from '../../persistence/constants'
@@ -184,7 +180,7 @@ export class ExperimentsModel extends ModelWithPersistence {
184180 ( { id : expId } ) => expId === id
185181 )
186182
187- if ( isQueued ( experiment ?. status ) ) {
183+ if ( isQueued ( experiment ?. executorStatus ) ) {
188184 return UNSELECTED
189185 }
190186
@@ -378,8 +374,8 @@ export class ExperimentsModel extends ModelWithPersistence {
378374 }
379375
380376 public getExperiments ( ) {
381- return this . getExperimentsAndQueued ( ) . filter ( ( { status } ) => {
382- return ! isQueued ( status )
377+ return this . getExperimentsAndQueued ( ) . filter ( ( { executorStatus } ) => {
378+ return ! isQueued ( executorStatus )
383379 } )
384380 }
385381
@@ -397,7 +393,7 @@ export class ExperimentsModel extends ModelWithPersistence {
397393
398394 public getRunningExperiments ( ) {
399395 return this . getExperimentsAndQueued ( ) . filter ( experiment =>
400- isRunning ( experiment . status )
396+ isRunning ( experiment . executorStatus )
401397 )
402398 }
403399
@@ -471,7 +467,7 @@ export class ExperimentsModel extends ModelWithPersistence {
471467 return this . getExperimentsByCommit ( commit ) ?. map ( experiment => ( {
472468 ...experiment ,
473469 hasChildren : false ,
474- type : this . getExperimentType ( experiment . status )
470+ type : this . getExperimentType ( experiment . executorStatus )
475471 } ) )
476472 }
477473
@@ -569,7 +565,7 @@ export class ExperimentsModel extends ModelWithPersistence {
569565 if (
570566 this . remoteExpShas === undefined ||
571567 ! experiment . sha ||
572- ! [ undefined , ExperimentStatus . SUCCESS ] . includes ( experiment . status )
568+ ! [ undefined , ExecutorStatus . SUCCESS ] . includes ( experiment . executorStatus )
573569 ) {
574570 return
575571 }
@@ -670,11 +666,11 @@ export class ExperimentsModel extends ModelWithPersistence {
670666 }
671667 }
672668
673- private getExperimentType ( status ?: ExperimentStatus ) {
674- if ( isQueued ( status ) ) {
669+ private getExperimentType ( executorStatus ?: ExecutorStatus ) {
670+ if ( isQueued ( executorStatus ) ) {
675671 return ExperimentType . QUEUED
676672 }
677- if ( isRunning ( status ) ) {
673+ if ( isRunning ( executorStatus ) ) {
678674 return ExperimentType . RUNNING
679675 }
680676
0 commit comments