mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Optimize actor follow scores modifications
This commit is contained in:
parent
4707f410ae
commit
2f5c6b2fc6
14 changed files with 118 additions and 73 deletions
|
@ -165,10 +165,10 @@ class JobQueue {
|
|||
return total
|
||||
}
|
||||
|
||||
removeOldJobs () {
|
||||
async removeOldJobs () {
|
||||
for (const key of Object.keys(this.queues)) {
|
||||
const queue = this.queues[key]
|
||||
queue.clean(JOB_COMPLETED_LIFETIME, 'completed')
|
||||
await queue.clean(JOB_COMPLETED_LIFETIME, 'completed')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue