Improving the pruning mechanism.

This commit is contained in:
John Livingston
2024-04-18 20:36:06 +02:00
parent ce2d8ed123
commit cfc5e98d90
2 changed files with 20 additions and 8 deletions

View File

@ -629,8 +629,8 @@ class ExternalAuthOIDC {
public startPruneTimer (options: RegisterServerOptions): void {
this.stopPruneTimer() // just in case...
// every 4 hour (every minutes in debug mode)
const pruneInterval = debugNumericParameter(options, 'externalAccountPruneInterval', 60 * 1000, 4 * 60 * 60 * 1000)
// every hour (every minutes in debug mode)
const pruneInterval = debugNumericParameter(options, 'externalAccountPruneInterval', 60 * 1000, 60 * 60 * 1000)
this.logger.info(`Creating a timer for external account pruning, every ${Math.round(pruneInterval / 1000)}s.`)
// eslint-disable-next-line @typescript-eslint/no-misused-promises