Revert "Synchronize server startup"

This reverts commit ffbdfa9123.
This commit is contained in:
Hazelnoot 2024-12-19 11:22:54 -05:00
parent d14f0b140b
commit 465c780a04
3 changed files with 13 additions and 14 deletions

View file

@ -33,7 +33,7 @@ export class QueueStatsService implements OnApplicationShutdown {
* Report queue stats regularly
*/
@bindThis
public async start(): Promise<void> {
public start(): void {
const log = [] as any[];
ev.on('requestQueueStatsLog', x => {
@ -82,7 +82,7 @@ export class QueueStatsService implements OnApplicationShutdown {
activeInboxJobs = 0;
};
await tick();
tick();
this.intervalId = setInterval(tick, interval);
}

View file

@ -68,7 +68,7 @@ export class ServerStatsService implements OnApplicationShutdown {
if (log.length > 200) log.pop();
};
await tick();
tick();
this.intervalId = setInterval(tick, interval);
}