mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
test(core): Add tests for scaling service (no-changelog) (#10320)
This commit is contained in:
@@ -94,12 +94,12 @@ export class ScalingService {
|
||||
|
||||
try {
|
||||
if (await job.isActive()) {
|
||||
await job.progress({ kind: 'abort-job' });
|
||||
await job.progress({ kind: 'abort-job' }); // being processed by worker
|
||||
this.logger.debug('[ScalingService] Stopped active job', props);
|
||||
return true;
|
||||
}
|
||||
|
||||
await job.remove();
|
||||
await job.remove(); // not yet picked up, or waiting for next pickup (stalled)
|
||||
this.logger.debug('[ScalingService] Stopped inactive job', props);
|
||||
return true;
|
||||
} catch (error: unknown) {
|
||||
|
||||
Reference in New Issue
Block a user