From ea04ee23ed4587f4542efdc4999b40a770954c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Thu, 7 Nov 2024 17:15:27 +0100 Subject: [PATCH] Restore defaults --- packages/cli/src/runners/runner-lifecycle-manager.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/cli/src/runners/runner-lifecycle-manager.ts b/packages/cli/src/runners/runner-lifecycle-manager.ts index 6314202edd..a6bec657ff 100644 --- a/packages/cli/src/runners/runner-lifecycle-manager.ts +++ b/packages/cli/src/runners/runner-lifecycle-manager.ts @@ -2,7 +2,7 @@ import { TaskRunnersConfig } from '@n8n/config'; import { strict } from 'node:assert'; import { Service } from 'typedi'; -// import { Time } from '@/constants'; +import { Time } from '@/constants'; import { OnShutdown } from '@/decorators/on-shutdown'; import { Logger } from '@/logging/logger.service'; import { TaskRunnerProcess } from '@/runners/task-runner-process'; @@ -80,11 +80,8 @@ export class RunnerLifecycleManager { } private startIdleChecks() { - // const idleTimeout = this.runnerConfig.idleTimeout * Time.minutes.toMilliseconds; - // const idleChecksFrequency = this.runnerConfig.idleChecksFrequency * Time.minutes.toMilliseconds; - - const idleTimeout = 10_000; - const idleChecksFrequency = 10_000; + const idleTimeout = this.runnerConfig.idleTimeout * Time.minutes.toMilliseconds; + const idleChecksFrequency = this.runnerConfig.idleChecksFrequency * Time.minutes.toMilliseconds; this.idleChecksInterval = setInterval(() => { if (this.state === 'running' && Date.now() - this.lastActivityTime > idleTimeout) {