mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Account for cancelling an execution with no workers available (#10343)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user