From 1d98f2ea9583e049d438629f7451bb8edfa5f699 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 21 Sep 2026 08:41:48 +0700 Subject: [PATCH] chore(diun): check for updates once a day at midnight UTC --- diun/.env.example | 2 +- diun/README.md | 2 +- diun/compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/diun/.env.example b/diun/.env.example index f42c21f..b5f5e65 100644 --- a/diun/.env.example +++ b/diun/.env.example @@ -1,7 +1,7 @@ DIUN_NOTIF_TELEGRAM_TOKEN= DIUN_NOTIF_TELEGRAM_CHATIDS= DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true -DIUN_WATCH_SCHEDULE=0 */6 * * * +DIUN_WATCH_SCHEDULE=0 0 * * * DIUN_WATCH_WORKERS=10 DIUN_WATCH_JITTER=30s TZ=UTC diff --git a/diun/README.md b/diun/README.md index 9cddcc3..35819aa 100644 --- a/diun/README.md +++ b/diun/README.md @@ -44,7 +44,7 @@ fail fast if unset. Everything else has a working default. | `DIUN_NOTIF_TELEGRAM_TOKEN` | — | Bot token from @BotFather | | `DIUN_NOTIF_TELEGRAM_CHATIDS` | — | Comma-separated chat ids to notify | | `DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT` | `true` | Watch every container without per-container labels | -| `DIUN_WATCH_SCHEDULE` | `0 */6 * * *` | Cron for the watch cycle | +| `DIUN_WATCH_SCHEDULE` | `0 0 * * *` | Cron for the watch cycle — once a day at midnight `TZ` | | `DIUN_WATCH_WORKERS` | `10` | Parallel registry lookups | | `DIUN_WATCH_JITTER` | `30s` | Random delay before each job | | `TZ` | `UTC` | Timezone for the schedule and log timestamps | diff --git a/diun/compose.yml b/diun/compose.yml index daac06d..6db9fb8 100644 --- a/diun/compose.yml +++ b/diun/compose.yml @@ -13,7 +13,7 @@ services: DIUN_NOTIF_TELEGRAM_TOKEN: ${DIUN_NOTIF_TELEGRAM_TOKEN:?required} DIUN_NOTIF_TELEGRAM_CHATIDS: ${DIUN_NOTIF_TELEGRAM_CHATIDS:?required} DIUN_DB_PATH: /data/diun.db - DIUN_WATCH_SCHEDULE: "${DIUN_WATCH_SCHEDULE:-0 */6 * * *}" + DIUN_WATCH_SCHEDULE: "${DIUN_WATCH_SCHEDULE:-0 0 * * *}" DIUN_WATCH_WORKERS: "${DIUN_WATCH_WORKERS:-10}" DIUN_WATCH_JITTER: "${DIUN_WATCH_JITTER:-30s}" TZ: "${TZ:-UTC}"