diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-16 15:34:21 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-16 15:45:58 +0100 |
commit | f012319a644fe8d9d33f2f567fa828442a3b39fd (patch) | |
tree | 8fc7aeff10749ed8088e3f89745433b59bb62c20 /server/initializers/constants.ts | |
parent | 83664918901564830f3b7d1bd9879411a1b857a8 (diff) | |
download | PeerTube-f012319a644fe8d9d33f2f567fa828442a3b39fd.tar.gz PeerTube-f012319a644fe8d9d33f2f567fa828442a3b39fd.tar.zst PeerTube-f012319a644fe8d9d33f2f567fa828442a3b39fd.zip |
Process video torrents in order
Prevent update before video torrent generation for example
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 1c849b561..e0f6f2bd2 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -153,6 +153,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { | |||
153 | 'video-redundancy': 1, | 153 | 'video-redundancy': 1, |
154 | 'video-live-ending': 1, | 154 | 'video-live-ending': 1, |
155 | 'video-edition': 1, | 155 | 'video-edition': 1, |
156 | 'manage-video-torrent': 1, | ||
156 | 'move-to-object-storage': 3 | 157 | 'move-to-object-storage': 3 |
157 | } | 158 | } |
158 | // Excluded keys are jobs that can be configured by admins | 159 | // Excluded keys are jobs that can be configured by admins |
@@ -170,6 +171,7 @@ const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-im | |||
170 | 'video-redundancy': 1, | 171 | 'video-redundancy': 1, |
171 | 'video-live-ending': 10, | 172 | 'video-live-ending': 10, |
172 | 'video-edition': 1, | 173 | 'video-edition': 1, |
174 | 'manage-video-torrent': 1, | ||
173 | 'move-to-object-storage': 1 | 175 | 'move-to-object-storage': 1 |
174 | } | 176 | } |
175 | const JOB_TTL: { [id in JobType]: number } = { | 177 | const JOB_TTL: { [id in JobType]: number } = { |
@@ -188,6 +190,7 @@ const JOB_TTL: { [id in JobType]: number } = { | |||
188 | 'activitypub-refresher': 60000 * 10, // 10 minutes | 190 | 'activitypub-refresher': 60000 * 10, // 10 minutes |
189 | 'video-redundancy': 1000 * 3600 * 3, // 3 hours | 191 | 'video-redundancy': 1000 * 3600 * 3, // 3 hours |
190 | 'video-live-ending': 1000 * 60 * 10, // 10 minutes | 192 | 'video-live-ending': 1000 * 60 * 10, // 10 minutes |
193 | 'manage-video-torrent': 1000 * 3600 * 3, // 3 hours | ||
191 | 'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours | 194 | 'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours |
192 | } | 195 | } |
193 | const REPEAT_JOBS: { [ id in JobType ]?: EveryRepeatOptions | CronRepeatOptions } = { | 196 | const REPEAT_JOBS: { [ id in JobType ]?: EveryRepeatOptions | CronRepeatOptions } = { |