+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
+}