mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Use bullmq job dependency
This commit is contained in:
parent
5a921e7b74
commit
bd911b54b5
42 changed files with 314 additions and 152 deletions
|
@ -120,7 +120,7 @@ async function forwardActivity (
|
|||
body: activity,
|
||||
contextType: null
|
||||
}
|
||||
return afterCommitIfTransaction(t, () => JobQueue.Instance.createJob({ type: 'activitypub-http-broadcast', payload }))
|
||||
return afterCommitIfTransaction(t, () => JobQueue.Instance.createJobAsync({ type: 'activitypub-http-broadcast', payload }))
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
@ -205,7 +205,7 @@ function broadcastTo (options: {
|
|||
contextType
|
||||
}
|
||||
|
||||
JobQueue.Instance.createJob({
|
||||
JobQueue.Instance.createJobAsync({
|
||||
type: parallelizable
|
||||
? 'activitypub-http-broadcast-parallel'
|
||||
: 'activitypub-http-broadcast',
|
||||
|
@ -222,7 +222,7 @@ function broadcastTo (options: {
|
|||
contextType
|
||||
}
|
||||
|
||||
JobQueue.Instance.createJob({ type: 'activitypub-http-unicast', payload })
|
||||
JobQueue.Instance.createJobAsync({ type: 'activitypub-http-unicast', payload })
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -243,7 +243,7 @@ function unicastTo (options: {
|
|||
contextType
|
||||
}
|
||||
|
||||
JobQueue.Instance.createJob({ type: 'activitypub-http-unicast', payload })
|
||||
JobQueue.Instance.createJobAsync({ type: 'activitypub-http-unicast', payload })
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue