From cd6c23c3684a78efff0a57cf91a7161c61f03980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20J=2E=20Over=C3=A5?= Date: Tue, 1 Aug 2023 19:55:53 +0200 Subject: [PATCH] poll slower when idle --- poll-image/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poll-image/main.ts b/poll-image/main.ts index 5e46353..d21ad3a 100644 --- a/poll-image/main.ts +++ b/poll-image/main.ts @@ -2,7 +2,7 @@ import { Cron } from './deps.ts'; logWithTimestamp('Setting up scrape cron job'); -const job = new Cron('* * * * *', async () => { +const job = new Cron('*/2 * * * *', async () => { await Promise.all( [ 'kroloftet',