aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-13 11:47:32 +0200
committerChocobozzz <me@florianbigard.com>2021-10-13 11:47:32 +0200
commit9db437c8155f3563a33e22ed2896072a9f1fbdb0 (patch)
tree716078fbe1506e0b0d19936f4939e9c530b3b8ab /server/initializers
parente81f6ccf989d4573b59ec7b2bf2812fe3e9fb534 (diff)
downloadPeerTube-9db437c8155f3563a33e22ed2896072a9f1fbdb0.tar.gz
PeerTube-9db437c8155f3563a33e22ed2896072a9f1fbdb0.tar.zst
PeerTube-9db437c8155f3563a33e22ed2896072a9f1fbdb0.zip
Process slow followers in unicast job queue
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index facd3b721..9896e1efb 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -134,9 +134,9 @@ const REMOTE_SCHEME = {
134} 134}
135 135
136const JOB_ATTEMPTS: { [id in JobType]: number } = { 136const JOB_ATTEMPTS: { [id in JobType]: number } = {
137 'activitypub-http-broadcast': 5, 137 'activitypub-http-broadcast': 1,
138 'activitypub-http-unicast': 5, 138 'activitypub-http-unicast': 1,
139 'activitypub-http-fetcher': 5, 139 'activitypub-http-fetcher': 2,
140 'activitypub-follow': 5, 140 'activitypub-follow': 5,
141 'activitypub-cleaner': 1, 141 'activitypub-cleaner': 1,
142 'video-file-import': 1, 142 'video-file-import': 1,
@@ -153,7 +153,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = {
153// Excluded keys are jobs that can be configured by admins 153// Excluded keys are jobs that can be configured by admins
154const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = { 154const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = {
155 'activitypub-http-broadcast': 1, 155 'activitypub-http-broadcast': 1,
156 'activitypub-http-unicast': 5, 156 'activitypub-http-unicast': 10,
157 'activitypub-http-fetcher': 3, 157 'activitypub-http-fetcher': 3,
158 'activitypub-cleaner': 1, 158 'activitypub-cleaner': 1,
159 'activitypub-follow': 1, 159 'activitypub-follow': 1,