]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Reduce video import TTL
authorChocobozzz <me@florianbigard.com>
Tue, 25 Sep 2018 14:31:16 +0000 (16:31 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 25 Sep 2018 15:49:49 +0000 (17:49 +0200)
server/initializers/constants.ts
server/lib/activitypub/process/process-create.ts

index 947cbda28621678ba5e24e716b2c3ae94139d4b7..8e019f61e9369b1026033dee834093227b421793 100644 (file)
@@ -119,7 +119,7 @@ const JOB_TTL: { [ id in JobType ]: number } = {
   '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
+  'video-import': 1000 * 3600 * 5, // 1 hour
   'email': 60000 * 10, // 10 minutes
   'videos-views': undefined // Unlimited
 }
index ceb5413ca6d153b889305502e949ac74adfdeecb..c2160872f34bf2d12d6c6081dfb4d893671a3955 100644 (file)
@@ -9,7 +9,7 @@ import { ActorModel } from '../../../models/activitypub/actor'
 import { VideoAbuseModel } from '../../../models/video/video-abuse'
 import { addVideoComment, resolveThread } from '../video-comments'
 import { getOrCreateVideoAndAccountAndChannel } from '../videos'
-import { forwardActivity, forwardVideoRelatedActivity } from '../send/utils'
+import { forwardVideoRelatedActivity } from '../send/utils'
 import { Redis } from '../../redis'
 import { createCacheFile } from '../cache-file'