From b44416e8eb138447360061c6b8e1d73f0c931099 Mon Sep 17 00:00:00 2001 From: Brandon Li Date: Wed, 2 Sep 2026 13:38:59 -0500 Subject: [PATCH] Default autostart update-check interval to 1 minute The no-change path is a single `git fetch`, so polling master every minute costs nothing and lines up with the VPS's own 60s deploy timer instead of lagging it by up to five. Co-Authored-By: Claude Opus 4.8 --- scripts/install-autostart.ps1 | 6 ++++-- scripts/install-autostart.sh | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/install-autostart.ps1 b/scripts/install-autostart.ps1 index f440bb8..2193cf2 100644 --- a/scripts/install-autostart.ps1 +++ b/scripts/install-autostart.ps1 @@ -24,14 +24,16 @@ Idempotent - safe to re-run. .PARAMETER IntervalMinutes - How often to check master for updates. Default 5. + How often to check master for updates. Default 1 — the no-change path is a + single `git fetch`, so checking every minute costs nothing and matches the + VPS's own 60s deploy timer. .PARAMETER SkipClicker Register only the dashboard, leaving the clicker to be run by hand. #> [CmdletBinding()] param( - [int]$IntervalMinutes = 5, + [int]$IntervalMinutes = 1, [switch]$SkipClicker ) diff --git a/scripts/install-autostart.sh b/scripts/install-autostart.sh index d459382..d13325d 100755 --- a/scripts/install-autostart.sh +++ b/scripts/install-autostart.sh @@ -11,11 +11,13 @@ # session, which is not incidental: the clicker synthesises real X11 input and # needs a desktop with DISPLAY set. A systemd system service has neither. # -# ./scripts/install-autostart.sh [--interval-minutes 5] [--skip-clicker] +# ./scripts/install-autostart.sh [--interval-minutes 1] [--skip-clicker] set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" -INTERVAL=5 +# Default 1: the no-change path is a single `git fetch`, so a per-minute check +# costs nothing and matches the VPS's own 60s deploy timer. +INTERVAL=1 SKIP_CLICKER=0 while [ $# -gt 0 ]; do