diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-09 11:40:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-09 11:54:18 +0100 |
commit | 7630e1c893f9848dce9d94135ce9b9a21ab80788 (patch) | |
tree | c5d171141b471d545c5da3b7ad27c4312dfd9b8d /server/initializers | |
parent | 474542d7ac60f7860daf9ea34d1c31968f43ab29 (diff) | |
download | PeerTube-7630e1c893f9848dce9d94135ce9b9a21ab80788.tar.gz PeerTube-7630e1c893f9848dce9d94135ce9b9a21ab80788.tar.zst PeerTube-7630e1c893f9848dce9d94135ce9b9a21ab80788.zip |
Fix import timeout inconsistency
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 6a59bf805..f66e6b65d 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -215,7 +215,7 @@ const REQUEST_TIMEOUTS = { | |||
215 | } | 215 | } |
216 | 216 | ||
217 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days | 217 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days |
218 | const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour | 218 | const VIDEO_IMPORT_TIMEOUT = Math.floor(JOB_TTL['video-import'] * 0.9) |
219 | 219 | ||
220 | const SCHEDULER_INTERVALS_MS = { | 220 | const SCHEDULER_INTERVALS_MS = { |
221 | ACTOR_FOLLOW_SCORES: 60000 * 60, // 1 hour | 221 | ACTOR_FOLLOW_SCORES: 60000 * 60, // 1 hour |