From 4f1f28a69378a28ee1a64b6abdf4d10ed5df21b5 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sun, 22 Jan 2023 11:09:38 +0000 Subject: [PATCH] readme about schedule.delay --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 17eb62c..5915aea 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,16 @@ database: prune: "@every 1h" ``` + +## Startup CronJob delay + +If there are multiple watches set up with the same schedule then if GoWatch is restarted, all these watches will trigger at the same time, which causes a short burst of activity. +It might be preferable to spread out these schedules a bit, this can be done by setting `schedule.delay` in the config or with the `GOWATCH_SCHEDULE_DELAY` environment variable: +``` +schedule: + delay: "5s" +``` + ## Proxy The config can be used to proxy HTTP/HTTPS requests through a proxy: