fix(core): Account for cancelling an execution with no workers available (#10343)

This commit is contained in:
Iván Ovejero
2024-08-12 11:03:51 +02:00
committed by GitHub
parent 8728b63aeb
commit b044e783e7
2 changed files with 23 additions and 1 deletions

View File

@@ -88,7 +88,9 @@ export class ScalingService {
}
async findJobsByStatus(statuses: JobStatus[]) {
return await this.queue.getJobs(statuses);
const jobs = await this.queue.getJobs(statuses);
return jobs.filter((job) => job !== null);
}
async stopJob(job: Job) {