From e7afddad8df03231671d1bdd0d3572c5372de170 Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Wed, 23 Dec 2020 08:29:10 -0400 Subject: [PATCH] Added env var to control sleeps --- server/src/tasks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/tasks.js b/server/src/tasks.js index 0de8614..600df6f 100644 --- a/server/src/tasks.js +++ b/server/src/tasks.js @@ -2,11 +2,11 @@ import { logError, logInfo } from './lib/logger' import { updateUserIdMappings } from './lib/paloalto' import { updateDevicesInfo } from './lib/wifiDevices' -const SLEEP_IN_MILLISECONDS = 10000 +const SLEEP_IN_MILLISECONDS = process.env.TASK_SLEEP || 10000 logInfo({ tags: ['task'], - message: 'Starting tasks...' + message: `Running tasks with ${SLEEP_IN_MILLISECONDS}ms sleeps.` }) async function updateDevicesTask() {