test
This commit is contained in:
parent
92c78218bc
commit
a2eac9fff6
82 changed files with 671 additions and 671 deletions
|
@ -10,7 +10,7 @@ const interval = 10000;
|
|||
|
||||
@Injectable()
|
||||
export class QueueStatsService implements OnApplicationShutdown {
|
||||
#intervalId: NodeJS.Timer;
|
||||
private intervalId: NodeJS.Timer;
|
||||
|
||||
constructor(
|
||||
private queueService: QueueService,
|
||||
|
@ -68,10 +68,10 @@ export class QueueStatsService implements OnApplicationShutdown {
|
|||
|
||||
tick();
|
||||
|
||||
this.#intervalId = setInterval(tick, interval);
|
||||
this.intervalId = setInterval(tick, interval);
|
||||
}
|
||||
|
||||
public onApplicationShutdown(signal?: string | undefined) {
|
||||
clearInterval(this.#intervalId);
|
||||
clearInterval(this.intervalId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue