+ 'video-import': 1,
+ 'email': 5,
+ 'videos-views': 1
+}
+const JOB_TTL: { [ id in JobType ]: number } = {
+ 'activitypub-http-broadcast': 60000 * 10, // 10 minutes
+ 'activitypub-http-unicast': 60000 * 10, // 10 minutes
+ 'activitypub-http-fetcher': 60000 * 10, // 10 minutes
+ 'activitypub-follow': 60000 * 10, // 10 minutes
+ 'video-file-import': 1000 * 3600, // 1 hour
+ 'video-file': 1000 * 3600 * 48, // 2 days, transcoding could be long
+ 'video-import': 1000 * 3600 * 5, // 5 hours
+ 'email': 60000 * 10, // 10 minutes
+ 'videos-views': undefined // Unlimited
+}
+const REPEAT_JOBS: { [ id: string ]: EveryRepeatOptions | CronRepeatOptions } = {
+ 'videos-views': {
+ cron: '1 * * * *' // At 1 minutes past the hour
+ }