aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts6
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'
8import { buildPath, isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core-utils' 8import { buildPath, isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core-utils'
9import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' 9import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type'
10import { invert } from 'lodash' 10import { invert } from 'lodash'
11import { RemoveOldJobsScheduler } from '../lib/schedulers/remove-old-jobs-scheduler'
12import { 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
15let config: IConfig = require('config') 13let config: IConfig = require('config')
@@ -98,8 +96,8 @@ const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days
98// 1 hour 96// 1 hour
99let SCHEDULER_INTERVALS_MS = { 97let 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// ---------------------------------------------------------------------------