aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 9e642af95..01860b575 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -194,7 +194,8 @@ const SCHEDULER_INTERVALS_MS = {
194 checkPlugins: CONFIG.PLUGINS.INDEX.CHECK_LATEST_VERSIONS_INTERVAL, 194 checkPlugins: CONFIG.PLUGINS.INDEX.CHECK_LATEST_VERSIONS_INTERVAL,
195 autoFollowIndexInstances: 60000 * 60 * 24, // 1 day 195 autoFollowIndexInstances: 60000 * 60 * 24, // 1 day
196 removeOldViews: 60000 * 60 * 24, // 1 day 196 removeOldViews: 60000 * 60 * 24, // 1 day
197 removeOldHistory: 60000 * 60 * 24 // 1 day 197 removeOldHistory: 60000 * 60 * 24, // 1 day
198 updateInboxStats: 1000 * 60 * 5 // 5 minutes
198} 199}
199 200
200// --------------------------------------------------------------------------- 201// ---------------------------------------------------------------------------
@@ -747,6 +748,7 @@ if (isTestInstance() === true) {
747 SCHEDULER_INTERVALS_MS.removeOldViews = 5000 748 SCHEDULER_INTERVALS_MS.removeOldViews = 5000
748 SCHEDULER_INTERVALS_MS.updateVideos = 5000 749 SCHEDULER_INTERVALS_MS.updateVideos = 5000
749 SCHEDULER_INTERVALS_MS.autoFollowIndexInstances = 5000 750 SCHEDULER_INTERVALS_MS.autoFollowIndexInstances = 5000
751 SCHEDULER_INTERVALS_MS.updateInboxStats = 5000
750 REPEAT_JOBS['videos-views'] = { every: 5000 } 752 REPEAT_JOBS['videos-views'] = { every: 5000 }
751 753
752 REDUNDANCY.VIDEOS.RANDOMIZED_FACTOR = 1 754 REDUNDANCY.VIDEOS.RANDOMIZED_FACTOR = 1