test(core): Add tests for scaling service (no-changelog) (#10320)

This commit is contained in:
Iván Ovejero
2024-08-08 09:42:16 +02:00
committed by GitHub
parent a0b021bbe7
commit aa95059cf0
3 changed files with 262 additions and 3 deletions

View File

@@ -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) {