mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Introduce experimental telemetry
This commit is contained in:
parent
15b43b214e
commit
630d0a1bf5
23 changed files with 1002 additions and 90 deletions
|
@ -285,6 +285,12 @@ class JobQueue {
|
|||
return total
|
||||
}
|
||||
|
||||
async getStats () {
|
||||
const promises = jobTypes.map(async t => ({ jobType: t, counts: await this.queues[t].getJobCounts() }))
|
||||
|
||||
return Promise.all(promises)
|
||||
}
|
||||
|
||||
async removeOldJobs () {
|
||||
for (const key of Object.keys(this.queues)) {
|
||||
const queue = this.queues[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue