aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-08 10:51:10 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-02-08 15:38:45 +0100
commit9129b7694d577322327ee79e9b9aa64deee92765 (patch)
treeeb23b7a952048c3725f29109d38c36368976dec0 /server/initializers/constants.ts
parent81b46cbc3417c46263c210c61b51a84a457abaaa (diff)
downloadPeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz
PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst
PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 9d9b3966c..7beaca238 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -146,14 +146,12 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = {
146 'video-redundancy': 1, 146 'video-redundancy': 1,
147 'video-live-ending': 1 147 'video-live-ending': 1
148} 148}
149const JOB_CONCURRENCY: { [id in JobType]: number } = { 149const JOB_CONCURRENCY: { [id in JobType]?: number } = {
150 'activitypub-http-broadcast': 1, 150 'activitypub-http-broadcast': 1,
151 'activitypub-http-unicast': 5, 151 'activitypub-http-unicast': 5,
152 'activitypub-http-fetcher': 1, 152 'activitypub-http-fetcher': 1,
153 'activitypub-follow': 1, 153 'activitypub-follow': 1,
154 'video-file-import': 1, 154 'video-file-import': 1,
155 'video-transcoding': 1,
156 'video-import': 1,
157 'email': 5, 155 'email': 5,
158 'videos-views': 1, 156 'videos-views': 1,
159 'activitypub-refresher': 1, 157 'activitypub-refresher': 1,