Fix job count for waiting jobs
This commit is contained in:
parent
acd9eaeb1d
commit
4300cc1ee1
|
@ -445,7 +445,7 @@ class JobQueue {
|
||||||
}
|
}
|
||||||
|
|
||||||
async count (state: JobState, jobType?: JobType): Promise<number> {
|
async count (state: JobState, jobType?: JobType): Promise<number> {
|
||||||
const states = state ? [ state ] : jobStates
|
const states = this.buildStateFilter(state)
|
||||||
const filteredJobTypes = this.buildTypeFilter(jobType)
|
const filteredJobTypes = this.buildTypeFilter(jobType)
|
||||||
|
|
||||||
let total = 0
|
let total = 0
|
||||||
|
|
Loading…
Reference in New Issue