diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index f008cd291..8f6ef1a81 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -163,6 +163,7 @@ const SCHEDULER_INTERVALS_MS = { | |||
163 | removeOldJobs: 60000 * 60, // 1 hour | 163 | removeOldJobs: 60000 * 60, // 1 hour |
164 | updateVideos: 60000, // 1 minute | 164 | updateVideos: 60000, // 1 minute |
165 | youtubeDLUpdate: 60000 * 60 * 24, // 1 day | 165 | youtubeDLUpdate: 60000 * 60 * 24, // 1 day |
166 | removeOldViews: 60000 * 60 * 24, // 1 day | ||
166 | removeOldHistory: 60000 * 60 * 24 // 1 day | 167 | removeOldHistory: 60000 * 60 * 24 // 1 day |
167 | } | 168 | } |
168 | 169 | ||
@@ -592,6 +593,7 @@ if (isTestInstance() === true) { | |||
592 | SCHEDULER_INTERVALS_MS.actorFollowScores = 1000 | 593 | SCHEDULER_INTERVALS_MS.actorFollowScores = 1000 |
593 | SCHEDULER_INTERVALS_MS.removeOldJobs = 10000 | 594 | SCHEDULER_INTERVALS_MS.removeOldJobs = 10000 |
594 | SCHEDULER_INTERVALS_MS.removeOldHistory = 5000 | 595 | SCHEDULER_INTERVALS_MS.removeOldHistory = 5000 |
596 | SCHEDULER_INTERVALS_MS.removeOldViews = 5000 | ||
595 | SCHEDULER_INTERVALS_MS.updateVideos = 5000 | 597 | SCHEDULER_INTERVALS_MS.updateVideos = 5000 |
596 | REPEAT_JOBS[ 'videos-views' ] = { every: 5000 } | 598 | REPEAT_JOBS[ 'videos-views' ] = { every: 5000 } |
597 | 599 | ||