mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 13:21:43 +01:00
killDeadClients
This commit is contained in:
parent
41e82a9984
commit
d4ec2ab3b4
1
config/default-0.json
Normal file
1
config/default-0.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
@ -36,8 +36,10 @@ export class AppService implements OnModuleInit {
|
||||
}
|
||||
}
|
||||
|
||||
@Cron(CronExpression.EVERY_SECOND)
|
||||
@Cron(CronExpression.EVERY_5_MINUTES)
|
||||
private async killDeadClients() {
|
||||
await this.clientService.killDeadClients();
|
||||
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
|
||||
await this.clientService.killDeadClients();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user