diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/create-import-video-file-job.ts | 2 | ||||
-rw-r--r-- | scripts/create-move-video-storage-job.ts | 2 | ||||
-rwxr-xr-x | scripts/create-transcoding-job.ts | 2 | ||||
-rw-r--r-- | scripts/migrations/peertube-4.0.ts | 2 | ||||
-rw-r--r-- | scripts/migrations/peertube-4.2.ts | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/scripts/create-import-video-file-job.ts b/scripts/create-import-video-file-job.ts index cf974f240..9cb387d2e 100644 --- a/scripts/create-import-video-file-job.ts +++ b/scripts/create-import-video-file-job.ts | |||
@@ -44,7 +44,7 @@ async function run () { | |||
44 | filePath: resolve(options.import) | 44 | filePath: resolve(options.import) |
45 | } | 45 | } |
46 | 46 | ||
47 | JobQueue.Instance.init(true) | 47 | JobQueue.Instance.init() |
48 | await JobQueue.Instance.createJob({ type: 'video-file-import', payload: dataInput }) | 48 | await JobQueue.Instance.createJob({ type: 'video-file-import', payload: dataInput }) |
49 | console.log('Import job for video %s created.', video.uuid) | 49 | console.log('Import job for video %s created.', video.uuid) |
50 | } | 50 | } |
diff --git a/scripts/create-move-video-storage-job.ts b/scripts/create-move-video-storage-job.ts index 0f0d4ee35..13ba3c0b7 100644 --- a/scripts/create-move-video-storage-job.ts +++ b/scripts/create-move-video-storage-job.ts | |||
@@ -37,7 +37,7 @@ run() | |||
37 | async function run () { | 37 | async function run () { |
38 | await initDatabaseModels(true) | 38 | await initDatabaseModels(true) |
39 | 39 | ||
40 | JobQueue.Instance.init(true) | 40 | JobQueue.Instance.init() |
41 | 41 | ||
42 | let ids: number[] = [] | 42 | let ids: number[] = [] |
43 | 43 | ||
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index aa97b0ba7..ffdf55ae4 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts | |||
@@ -97,7 +97,7 @@ async function run () { | |||
97 | } | 97 | } |
98 | } | 98 | } |
99 | 99 | ||
100 | JobQueue.Instance.init(true) | 100 | JobQueue.Instance.init() |
101 | 101 | ||
102 | video.state = VideoState.TO_TRANSCODE | 102 | video.state = VideoState.TO_TRANSCODE |
103 | await video.save() | 103 | await video.save() |
diff --git a/scripts/migrations/peertube-4.0.ts b/scripts/migrations/peertube-4.0.ts index 9e5ca60d4..b0891c2e6 100644 --- a/scripts/migrations/peertube-4.0.ts +++ b/scripts/migrations/peertube-4.0.ts | |||
@@ -21,7 +21,7 @@ async function run () { | |||
21 | 21 | ||
22 | await initDatabaseModels(true) | 22 | await initDatabaseModels(true) |
23 | 23 | ||
24 | JobQueue.Instance.init(true) | 24 | JobQueue.Instance.init() |
25 | 25 | ||
26 | const ids = await VideoModel.listLocalIds() | 26 | const ids = await VideoModel.listLocalIds() |
27 | 27 | ||
diff --git a/scripts/migrations/peertube-4.2.ts b/scripts/migrations/peertube-4.2.ts index 6a9007265..513c629ef 100644 --- a/scripts/migrations/peertube-4.2.ts +++ b/scripts/migrations/peertube-4.2.ts | |||
@@ -27,7 +27,7 @@ async function run () { | |||
27 | console.log('Generate avatar miniatures from existing avatars.') | 27 | console.log('Generate avatar miniatures from existing avatars.') |
28 | 28 | ||
29 | await initDatabaseModels(true) | 29 | await initDatabaseModels(true) |
30 | JobQueue.Instance.init(true) | 30 | JobQueue.Instance.init() |
31 | 31 | ||
32 | const accounts: AccountModel[] = await AccountModel.findAll({ | 32 | const accounts: AccountModel[] = await AccountModel.findAll({ |
33 | include: [ | 33 | include: [ |