X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=53902071ce378bd5c8a0b12f117fb69e00f723d3;hb=bbe0f0645ca958d33a3f409b15166609733b663f;hp=1643785058098a704ea1528600ec35488b6c3902;hpb=2baea0c77cc765f7cbca9c9a2f4272268892a35c;p=github%2FChocobozzz%2FPeerTube.git 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' import { buildPath, isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core-utils' import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' import { invert } from 'lodash' -import { RemoveOldJobsScheduler } from '../lib/schedulers/remove-old-jobs-scheduler' -import { UpdateVideosScheduler } from '../lib/schedulers/update-videos-scheduler' // Use a variable to reload the configuration if we need let config: IConfig = require('config') @@ -98,8 +96,8 @@ const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days // 1 hour let SCHEDULER_INTERVALS_MS = { badActorFollow: 60000 * 60, // 1 hour - removeOldJobs: 60000 * 60, // 1 jour - updateVideos: 60000 * 1, // 1 minute + removeOldJobs: 60000 * 60, // 1 hour + updateVideos: 60000 // 1 minute } // ---------------------------------------------------------------------------