diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 164378505..53902071c 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -8,8 +8,6 @@ import { VideoPrivacy } from '../../shared/models/videos' | |||
8 | import { buildPath, isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core-utils' | 8 | import { buildPath, isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core-utils' |
9 | import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' | 9 | import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' |
10 | import { invert } from 'lodash' | 10 | import { invert } from 'lodash' |
11 | import { RemoveOldJobsScheduler } from '../lib/schedulers/remove-old-jobs-scheduler' | ||
12 | import { UpdateVideosScheduler } from '../lib/schedulers/update-videos-scheduler' | ||
13 | 11 | ||
14 | // Use a variable to reload the configuration if we need | 12 | // Use a variable to reload the configuration if we need |
15 | let config: IConfig = require('config') | 13 | let config: IConfig = require('config') |
@@ -98,8 +96,8 @@ const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days | |||
98 | // 1 hour | 96 | // 1 hour |
99 | let SCHEDULER_INTERVALS_MS = { | 97 | let SCHEDULER_INTERVALS_MS = { |
100 | badActorFollow: 60000 * 60, // 1 hour | 98 | badActorFollow: 60000 * 60, // 1 hour |
101 | removeOldJobs: 60000 * 60, // 1 jour | 99 | removeOldJobs: 60000 * 60, // 1 hour |
102 | updateVideos: 60000 * 1, // 1 minute | 100 | updateVideos: 60000 // 1 minute |
103 | } | 101 | } |
104 | 102 | ||
105 | // --------------------------------------------------------------------------- | 103 | // --------------------------------------------------------------------------- |