chore(diun): check for updates once a day at midnight UTC

This commit is contained in:
tiennm99 committed 2026-09-21 08:41:48 +07:00
1 parent 9da8546d19
commit 1d98f2ea95
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 |
+1 -1
View File
@@ -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}"