diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-22 10:28:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-22 10:28:00 +0200 |
commit | 619537426bbb9fcb9f2825068d5f907db0dc1f09 (patch) | |
tree | 5ab8a1928ee8822761cb149bf9b5bf468a4d1767 /server/initializers | |
parent | 62549e6c9818f422698f030e0b242609115493ed (diff) | |
download | PeerTube-619537426bbb9fcb9f2825068d5f907db0dc1f09.tar.gz PeerTube-619537426bbb9fcb9f2825068d5f907db0dc1f09.tar.zst PeerTube-619537426bbb9fcb9f2825068d5f907db0dc1f09.zip |
Constants consistency
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 1d434d5ab..dc5747fc7 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -206,17 +206,17 @@ const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days | |||
206 | const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour | 206 | const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour |
207 | 207 | ||
208 | const SCHEDULER_INTERVALS_MS = { | 208 | const SCHEDULER_INTERVALS_MS = { |
209 | actorFollowScores: 60000 * 60, // 1 hour | 209 | ACTOR_FOLLOW_SCORES: 60000 * 60, // 1 hour |
210 | removeOldJobs: 60000 * 60, // 1 hour | 210 | REMOVE_OLD_JOBS: 60000 * 60, // 1 hour |
211 | updateVideos: 60000, // 1 minute | 211 | UPDATE_VIDEOS: 60000, // 1 minute |
212 | youtubeDLUpdate: 60000 * 60 * 24, // 1 day | 212 | YOUTUBE_DL_UPDATE: 60000 * 60 * 24, // 1 day |
213 | checkPlugins: CONFIG.PLUGINS.INDEX.CHECK_LATEST_VERSIONS_INTERVAL, | 213 | CHECK_PLUGINS: CONFIG.PLUGINS.INDEX.CHECK_LATEST_VERSIONS_INTERVAL, |
214 | checkPeerTubeVersion: 60000 * 60 * 24, // 1 day | 214 | CHECK_PEERTUBE_VERSION: 60000 * 60 * 24, // 1 day |
215 | autoFollowIndexInstances: 60000 * 60 * 24, // 1 day | 215 | AUTO_FOLLOW_INDEX_INSTANCES: 60000 * 60 * 24, // 1 day |
216 | removeOldViews: 60000 * 60 * 24, // 1 day | 216 | REMOVE_OLD_VIEWS: 60000 * 60 * 24, // 1 day |
217 | removeOldHistory: 60000 * 60 * 24, // 1 day | 217 | REMOVE_OLD_HISTORY: 60000 * 60 * 24, // 1 day |
218 | updateInboxStats: 1000 * 60, // 1 minute | 218 | UPDATE_INBOX_STATS: 1000 * 60, // 1 minute |
219 | removeDanglingResumableUploads: 60000 * 60 * 16 // 16 hours | 219 | REMOVE_DANGLING_RESUMABLE_UPLOADS: 60000 * 60 * 16 // 16 hours |
220 | } | 220 | } |
221 | 221 | ||
222 | // --------------------------------------------------------------------------- | 222 | // --------------------------------------------------------------------------- |
@@ -782,14 +782,14 @@ if (isTestInstance() === true) { | |||
782 | CONSTRAINTS_FIELDS.ACTORS.IMAGE.FILE_SIZE.max = 100 * 1024 // 100KB | 782 | CONSTRAINTS_FIELDS.ACTORS.IMAGE.FILE_SIZE.max = 100 * 1024 // 100KB |
783 | CONSTRAINTS_FIELDS.VIDEOS.IMAGE.FILE_SIZE.max = 400 * 1024 // 400KB | 783 | CONSTRAINTS_FIELDS.VIDEOS.IMAGE.FILE_SIZE.max = 400 * 1024 // 400KB |
784 | 784 | ||
785 | SCHEDULER_INTERVALS_MS.actorFollowScores = 1000 | 785 | SCHEDULER_INTERVALS_MS.ACTOR_FOLLOW_SCORES = 1000 |
786 | SCHEDULER_INTERVALS_MS.removeOldJobs = 10000 | 786 | SCHEDULER_INTERVALS_MS.REMOVE_OLD_JOBS = 10000 |
787 | SCHEDULER_INTERVALS_MS.removeOldHistory = 5000 | 787 | SCHEDULER_INTERVALS_MS.REMOVE_OLD_HISTORY = 5000 |
788 | SCHEDULER_INTERVALS_MS.removeOldViews = 5000 | 788 | SCHEDULER_INTERVALS_MS.REMOVE_OLD_VIEWS = 5000 |
789 | SCHEDULER_INTERVALS_MS.updateVideos = 5000 | 789 | SCHEDULER_INTERVALS_MS.UPDATE_VIDEOS = 5000 |
790 | SCHEDULER_INTERVALS_MS.autoFollowIndexInstances = 5000 | 790 | SCHEDULER_INTERVALS_MS.AUTO_FOLLOW_INDEX_INSTANCES = 5000 |
791 | SCHEDULER_INTERVALS_MS.updateInboxStats = 5000 | 791 | SCHEDULER_INTERVALS_MS.UPDATE_INBOX_STATS = 5000 |
792 | SCHEDULER_INTERVALS_MS.checkPeerTubeVersion = 2000 | 792 | SCHEDULER_INTERVALS_MS.CHECK_PEERTUBE_VERSION = 2000 |
793 | REPEAT_JOBS['videos-views'] = { every: 5000 } | 793 | REPEAT_JOBS['videos-views'] = { every: 5000 } |
794 | REPEAT_JOBS['activitypub-cleaner'] = { every: 5000 } | 794 | REPEAT_JOBS['activitypub-cleaner'] = { every: 5000 } |
795 | 795 | ||