aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-20 14:31:11 +0100
committerChocobozzz <me@florianbigard.com>2018-12-20 14:31:11 +0100
commit2f5c6b2fc6e60502c2a8df4dc9029c1d87ebe30b (patch)
tree9b83f018403c30421c1b3ca4439c4dddc5077881 /server/initializers
parent4707f410ae44b55e17e1758693dd21cff03b7ef1 (diff)
downloadPeerTube-2f5c6b2fc6e60502c2a8df4dc9029c1d87ebe30b.tar.gz
PeerTube-2f5c6b2fc6e60502c2a8df4dc9029c1d87ebe30b.tar.zst
PeerTube-2f5c6b2fc6e60502c2a8df4dc9029c1d87ebe30b.zip
Optimize actor follow scores modifications
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index b326a6c7b..1c27a9f6b 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -144,7 +144,7 @@ const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour
144 144
145// 1 hour 145// 1 hour
146let SCHEDULER_INTERVALS_MS = { 146let SCHEDULER_INTERVALS_MS = {
147 badActorFollow: 60000 * 60, // 1 hour 147 actorFollowScores: 60000 * 60, // 1 hour
148 removeOldJobs: 60000 * 60, // 1 hour 148 removeOldJobs: 60000 * 60, // 1 hour
149 updateVideos: 60000, // 1 minute 149 updateVideos: 60000, // 1 minute
150 youtubeDLUpdate: 60000 * 60 * 24 // 1 day 150 youtubeDLUpdate: 60000 * 60 * 24 // 1 day
@@ -675,7 +675,7 @@ if (isTestInstance() === true) {
675 675
676 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB 676 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB
677 677
678 SCHEDULER_INTERVALS_MS.badActorFollow = 10000 678 SCHEDULER_INTERVALS_MS.actorFollowScores = 1000
679 SCHEDULER_INTERVALS_MS.removeOldJobs = 10000 679 SCHEDULER_INTERVALS_MS.removeOldJobs = 10000
680 SCHEDULER_INTERVALS_MS.updateVideos = 5000 680 SCHEDULER_INTERVALS_MS.updateVideos = 5000
681 REPEAT_JOBS['videos-views'] = { every: 5000 } 681 REPEAT_JOBS['videos-views'] = { every: 5000 }