diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-01 12:00:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-01 12:00:05 +0200 |
commit | cf9166cf2fb7b51a1137a259eed9338798c73500 (patch) | |
tree | 7cf4b5995d4a29cc335e1fd72c1572510f8432ad /server/initializers | |
parent | 2a27c451f78922107c3f056e7506be8a79b31e03 (diff) | |
download | PeerTube-cf9166cf2fb7b51a1137a259eed9338798c73500.tar.gz PeerTube-cf9166cf2fb7b51a1137a259eed9338798c73500.tar.zst PeerTube-cf9166cf2fb7b51a1137a259eed9338798c73500.zip |
Add timeout on youtube dl to cleaup files
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 09ecedfa5..1a3b52015 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -119,7 +119,7 @@ const JOB_TTL: { [ id in JobType ]: number } = { | |||
119 | 'activitypub-follow': 60000 * 10, // 10 minutes | 119 | 'activitypub-follow': 60000 * 10, // 10 minutes |
120 | 'video-file-import': 1000 * 3600, // 1 hour | 120 | 'video-file-import': 1000 * 3600, // 1 hour |
121 | 'video-file': 1000 * 3600 * 48, // 2 days, transcoding could be long | 121 | 'video-file': 1000 * 3600 * 48, // 2 days, transcoding could be long |
122 | 'video-import': 1000 * 3600, // 1 hour | 122 | 'video-import': 1000 * 3600 * 2, // hours |
123 | 'email': 60000 * 10, // 10 minutes | 123 | 'email': 60000 * 10, // 10 minutes |
124 | 'videos-views': undefined // Unlimited | 124 | 'videos-views': undefined // Unlimited |
125 | } | 125 | } |
@@ -133,6 +133,7 @@ const BROADCAST_CONCURRENCY = 10 // How many requests in parallel we do in activ | |||
133 | const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...) | 133 | const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...) |
134 | const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds | 134 | const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds |
135 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days | 135 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days |
136 | const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour | ||
136 | 137 | ||
137 | // 1 hour | 138 | // 1 hour |
138 | let SCHEDULER_INTERVALS_MS = { | 139 | let SCHEDULER_INTERVALS_MS = { |
@@ -700,6 +701,7 @@ export { | |||
700 | TORRENT_MIMETYPE_EXT, | 701 | TORRENT_MIMETYPE_EXT, |
701 | STATIC_MAX_AGE, | 702 | STATIC_MAX_AGE, |
702 | STATIC_PATHS, | 703 | STATIC_PATHS, |
704 | VIDEO_IMPORT_TIMEOUT, | ||
703 | ACTIVITY_PUB, | 705 | ACTIVITY_PUB, |
704 | ACTIVITY_PUB_ACTOR_TYPES, | 706 | ACTIVITY_PUB_ACTOR_TYPES, |
705 | THUMBNAILS_SIZE, | 707 | THUMBNAILS_SIZE, |