X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fcustom-validators%2Fjobs.ts;h=f6777ecd51610d6996a0fc6f90ef8763d6b352f1;hb=35f676e5d3e5e242e84ed63da2cc78117079c7cb;hp=72dc73ee442703fb39fa96ae5626345a6b283549;hpb=040d6896a3cd5622e78cccdedd8cce2afcf49a31;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/custom-validators/jobs.ts b/server/helpers/custom-validators/jobs.ts index 72dc73ee4..f6777ecd5 100644 --- a/server/helpers/custom-validators/jobs.ts +++ b/server/helpers/custom-validators/jobs.ts @@ -2,7 +2,7 @@ import { JobState } from '../../../shared/models' import { exists } from './misc' import { jobTypes } from '@server/lib/job-queue/job-queue' -const jobStates: JobState[] = [ 'active', 'completed', 'failed', 'waiting', 'delayed' ] +const jobStates: JobState[] = [ 'active', 'completed', 'failed', 'waiting', 'delayed', 'paused' ] function isValidJobState (value: JobState) { return exists(value) && jobStates.includes(value)