aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-29 15:45:02 +0100
committerChocobozzz <me@florianbigard.com>2021-11-29 15:45:02 +0100
commit4c99953acd04a2405db58ae2d7656a488bcc63a4 (patch)
treec2a35b969787729ec0013a8746493cdbca7b720b /server/initializers/constants.ts
parentc5e53d0e3979c4602760e507a7240ea6ffad7823 (diff)
downloadPeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.tar.gz
PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.tar.zst
PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.zip
Fix redundancy timeout
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index b65741bbd..b8633e83e 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -202,7 +202,12 @@ const JOB_PRIORITY = {
202const BROADCAST_CONCURRENCY = 30 // How many requests in parallel we do in activitypub-http-broadcast job 202const BROADCAST_CONCURRENCY = 30 // How many requests in parallel we do in activitypub-http-broadcast job
203const AP_CLEANER_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-cleaner job 203const AP_CLEANER_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-cleaner job
204const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...) 204const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...)
205const REQUEST_TIMEOUT = 7000 // 7 seconds 205const REQUEST_TIMEOUTS = {
206 DEFAULT: 7000, // 7 seconds
207 FILE: 30000, // 30 seconds
208 REDUNDANCY: JOB_TTL['video-redundancy']
209}
210
206const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days 211const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days
207const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour 212const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour
208 213
@@ -896,7 +901,7 @@ export {
896 FFMPEG_NICE, 901 FFMPEG_NICE,
897 ABUSE_STATES, 902 ABUSE_STATES,
898 LRU_CACHE, 903 LRU_CACHE,
899 REQUEST_TIMEOUT, 904 REQUEST_TIMEOUTS,
900 USER_PASSWORD_RESET_LIFETIME, 905 USER_PASSWORD_RESET_LIFETIME,
901 USER_PASSWORD_CREATE_LIFETIME, 906 USER_PASSWORD_CREATE_LIFETIME,
902 MEMOIZE_TTL, 907 MEMOIZE_TTL,