diff options
Diffstat (limited to 'server/initializers')
-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 6034da1c6..cd2cc33d3 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -139,6 +139,7 @@ const REMOTE_SCHEME = { | |||
139 | 139 | ||
140 | const JOB_ATTEMPTS: { [id in JobType]: number } = { | 140 | const JOB_ATTEMPTS: { [id in JobType]: number } = { |
141 | 'activitypub-http-broadcast': 1, | 141 | 'activitypub-http-broadcast': 1, |
142 | 'activitypub-http-broadcast-parallel': 1, | ||
142 | 'activitypub-http-unicast': 1, | 143 | 'activitypub-http-unicast': 1, |
143 | 'activitypub-http-fetcher': 2, | 144 | 'activitypub-http-fetcher': 2, |
144 | 'activitypub-follow': 5, | 145 | 'activitypub-follow': 5, |
@@ -159,6 +160,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { | |||
159 | // Excluded keys are jobs that can be configured by admins | 160 | // Excluded keys are jobs that can be configured by admins |
160 | const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = { | 161 | const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = { |
161 | 'activitypub-http-broadcast': 1, | 162 | 'activitypub-http-broadcast': 1, |
163 | 'activitypub-http-broadcast-parallel': 30, | ||
162 | 'activitypub-http-unicast': 10, | 164 | 'activitypub-http-unicast': 10, |
163 | 'activitypub-http-fetcher': 3, | 165 | 'activitypub-http-fetcher': 3, |
164 | 'activitypub-cleaner': 1, | 166 | 'activitypub-cleaner': 1, |
@@ -176,6 +178,7 @@ const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-im | |||
176 | } | 178 | } |
177 | const JOB_TTL: { [id in JobType]: number } = { | 179 | const JOB_TTL: { [id in JobType]: number } = { |
178 | 'activitypub-http-broadcast': 60000 * 10, // 10 minutes | 180 | 'activitypub-http-broadcast': 60000 * 10, // 10 minutes |
181 | 'activitypub-http-broadcast-parallel': 60000 * 10, // 10 minutes | ||
179 | 'activitypub-http-unicast': 60000 * 10, // 10 minutes | 182 | 'activitypub-http-unicast': 60000 * 10, // 10 minutes |
180 | 'activitypub-http-fetcher': 1000 * 3600 * 10, // 10 hours | 183 | 'activitypub-http-fetcher': 1000 * 3600 * 10, // 10 hours |
181 | 'activitypub-follow': 60000 * 10, // 10 minutes | 184 | 'activitypub-follow': 60000 * 10, // 10 minutes |