diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-29 15:45:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-29 15:45:02 +0100 |
commit | 4c99953acd04a2405db58ae2d7656a488bcc63a4 (patch) | |
tree | c2a35b969787729ec0013a8746493cdbca7b720b /server/initializers | |
parent | c5e53d0e3979c4602760e507a7240ea6ffad7823 (diff) | |
download | PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.tar.gz PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.tar.zst PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.zip |
Fix redundancy timeout
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 9 |
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 = { | |||
202 | const BROADCAST_CONCURRENCY = 30 // How many requests in parallel we do in activitypub-http-broadcast job | 202 | const BROADCAST_CONCURRENCY = 30 // How many requests in parallel we do in activitypub-http-broadcast job |
203 | const AP_CLEANER_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-cleaner job | 203 | const AP_CLEANER_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-cleaner job |
204 | const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...) | 204 | const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...) |
205 | const REQUEST_TIMEOUT = 7000 // 7 seconds | 205 | const REQUEST_TIMEOUTS = { |
206 | DEFAULT: 7000, // 7 seconds | ||
207 | FILE: 30000, // 30 seconds | ||
208 | REDUNDANCY: JOB_TTL['video-redundancy'] | ||
209 | } | ||
210 | |||
206 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days | 211 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days |
207 | const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour | 212 | const 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, |