1 import { JobState } from '../../../shared/models'
2 import { exists } from './misc'
4 const jobStates: JobState[] = [ 'active', 'completed', 'failed', 'waiting', 'delayed' ]
6 function isValidJobState (value: JobState) {
7 return exists(value) && jobStates.indexOf(value) !== -1
10 // ---------------------------------------------------------------------------