diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-08 10:42:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 09:18:07 +0200 |
commit | 5a921e7b74910414626bfc9672b857e987e3ebed (patch) | |
tree | f627e2ccc11c55bcba9e630951e72c5f94864c12 /shared/models/server/job.model.ts | |
parent | 5e2afe4290103bf0d54ae7b3e62781f2a00487c9 (diff) | |
download | PeerTube-5a921e7b74910414626bfc9672b857e987e3ebed.tar.gz PeerTube-5a921e7b74910414626bfc9672b857e987e3ebed.tar.zst PeerTube-5a921e7b74910414626bfc9672b857e987e3ebed.zip |
Move to bullmq
Diffstat (limited to 'shared/models/server/job.model.ts')
-rw-r--r-- | shared/models/server/job.model.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index ac10ea964..a924183f2 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -4,7 +4,7 @@ import { VideoResolution } from '../videos/file/video-resolution.enum' | |||
4 | import { VideoStudioTaskCut } from '../videos/studio' | 4 | import { VideoStudioTaskCut } from '../videos/studio' |
5 | import { SendEmailOptions } from './emailer.model' | 5 | import { SendEmailOptions } from './emailer.model' |
6 | 6 | ||
7 | export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' | 'paused' | 7 | export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' | 'paused' | 'waiting-children' |
8 | 8 | ||
9 | export type JobType = | 9 | export type JobType = |
10 | | 'activitypub-http-unicast' | 10 | | 'activitypub-http-unicast' |
@@ -27,8 +27,8 @@ export type JobType = | |||
27 | | 'video-studio-edition' | 27 | | 'video-studio-edition' |
28 | 28 | ||
29 | export interface Job { | 29 | export interface Job { |
30 | id: number | 30 | id: number | string |
31 | state: JobState | 31 | state: JobState | 'unknown' |
32 | type: JobType | 32 | type: JobType |
33 | data: any | 33 | data: any |
34 | priority: number | 34 | priority: number |