aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts3
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}
175const JOB_TTL: { [id in JobType]: number } = { 177const 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}
193const REPEAT_JOBS: { [ id in JobType ]?: EveryRepeatOptions | CronRepeatOptions } = { 196const REPEAT_JOBS: { [ id in JobType ]?: EveryRepeatOptions | CronRepeatOptions } = {