diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-25 15:05:18 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-25 18:41:17 +0100 |
commit | 94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4 (patch) | |
tree | 32a9148e0e4567f0c4ffae0412cbed20b84e8873 /shared | |
parent | d765fafc3faf0db9818eb1a07161df1cb1bc0efa (diff) | |
download | PeerTube-94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4.tar.gz PeerTube-94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4.tar.zst PeerTube-94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4.zip |
Move job queue to redis
We'll use it as cache in the future.
/!\ You'll loose your old jobs (pending jobs too) so upgrade only when
you don't have pending job anymore.
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/job.model.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/shared/models/job.model.ts b/shared/models/job.model.ts index 1c46a7900..1a25600f3 100644 --- a/shared/models/job.model.ts +++ b/shared/models/job.model.ts | |||
@@ -1,12 +1,16 @@ | |||
1 | export type JobState = 'pending' | 'processing' | 'error' | 'success' | 1 | export type JobState = 'active' | 'complete' | 'failed' | 'inactive' | 'delayed' |
2 | export type JobCategory = 'transcoding' | 'activitypub-http' | 2 | |
3 | export type JobType = 'activitypub-http-unicast' | | ||
4 | 'activitypub-http-broadcast' | | ||
5 | 'activitypub-http-fetcher' | | ||
6 | 'video-file' | ||
3 | 7 | ||
4 | export interface Job { | 8 | export interface Job { |
5 | id: number | 9 | id: number |
6 | state: JobState | 10 | state: JobState |
7 | category: JobCategory | 11 | type: JobType |
8 | handlerName: string | 12 | data: any, |
9 | handlerInputData: any | 13 | error: any, |
10 | createdAt: Date | 14 | createdAt: Date |
11 | updatedAt: Date | 15 | updatedAt: Date |
12 | } | 16 | } |