import { JobStatus } from '../../commons/types/job' ; import { PipelineStatus } from '../../commons/types/pipeline' ; export const finalStatuses = [ 'skipped' , 'success' , 'failure' , 'cancelled' , 'partial' , ] ; const finalStatusSet = new Set ( finalStatuses ) ; export function isFinalStatus ( status ) { return finalStatusSet . has ( status ) ; }