aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index db43c59be..a53c22662 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -156,7 +156,9 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = {
156 'video-live-ending': 1, 156 'video-live-ending': 1,
157 'video-studio-edition': 1, 157 'video-studio-edition': 1,
158 'manage-video-torrent': 1, 158 'manage-video-torrent': 1,
159 'move-to-object-storage': 3 159 'move-to-object-storage': 3,
160 'notify': 1,
161 'federate-video': 1
160} 162}
161// Excluded keys are jobs that can be configured by admins 163// Excluded keys are jobs that can be configured by admins
162const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = { 164const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = {
@@ -175,7 +177,9 @@ const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-im
175 'video-live-ending': 10, 177 'video-live-ending': 10,
176 'video-studio-edition': 1, 178 'video-studio-edition': 1,
177 'manage-video-torrent': 1, 179 'manage-video-torrent': 1,
178 'move-to-object-storage': 1 180 'move-to-object-storage': 1,
181 'notify': 5,
182 'federate-video': 3
179} 183}
180const JOB_TTL: { [id in JobType]: number } = { 184const JOB_TTL: { [id in JobType]: number } = {
181 'activitypub-http-broadcast': 60000 * 10, // 10 minutes 185 'activitypub-http-broadcast': 60000 * 10, // 10 minutes
@@ -195,6 +199,8 @@ const JOB_TTL: { [id in JobType]: number } = {
195 'video-redundancy': 1000 * 3600 * 3, // 3 hours 199 'video-redundancy': 1000 * 3600 * 3, // 3 hours
196 'video-live-ending': 1000 * 60 * 10, // 10 minutes 200 'video-live-ending': 1000 * 60 * 10, // 10 minutes
197 'manage-video-torrent': 1000 * 3600 * 3, // 3 hours 201 'manage-video-torrent': 1000 * 3600 * 3, // 3 hours
202 'notify': 60000 * 5, // 5 minutes
203 'federate-video': 60000 * 5, // 5 minutes
198 'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours 204 'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours
199} 205}
200const REPEAT_JOBS: { [ id in JobType ]?: RepeatOptions } = { 206const REPEAT_JOBS: { [ id in JobType ]?: RepeatOptions } = {