aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-14 11:35:58 +0200
committerChocobozzz <me@florianbigard.com>2022-09-14 11:45:18 +0200
commit4404a7c467a2c6863728127eeff5ca4b59619940 (patch)
treefef12748e97c9474d1ca7f21e13ad435286549d8 /scripts
parentfc3784583ce383cec8619be5b1d311b340b645f9 (diff)
downloadPeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.tar.gz
PeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.tar.zst
PeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.zip
Prevent job queue to be started before plugins
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create-import-video-file-job.ts2
-rw-r--r--scripts/create-move-video-storage-job.ts2
-rwxr-xr-xscripts/create-transcoding-job.ts2
-rw-r--r--scripts/migrations/peertube-4.0.ts2
-rw-r--r--scripts/migrations/peertube-4.2.ts2
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()
37async function run () { 37async 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: [