1
0
Fork 0

Fix job count for waiting jobs

This commit is contained in:
Chocobozzz 2024-02-15 13:40:53 +01:00
parent acd9eaeb1d
commit 4300cc1ee1
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -445,7 +445,7 @@ class JobQueue {
}
async count (state: JobState, jobType?: JobType): Promise<number> {
const states = state ? [ state ] : jobStates
const states = this.buildStateFilter(state)
const filteredJobTypes = this.buildTypeFilter(jobType)
let total = 0