From 44c02b45b44299d2d121eb45bf3e425b46e3b54f Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Thu, 26 Feb 2026 08:53:27 +0100 Subject: [PATCH] Increase history retention to 20, run scrapers every 4 hours MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - generate_status.py: raise --keep default from 5 to 20 entries - build/crontab: change schedule from 06:00/18:00 to every 4 hours (*/4) covers 6 runs/day ≈ 3.3 days of history at default retention Co-Authored-By: Claude Sonnet 4.6 --- build/crontab | 2 +- generate_status.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/crontab b/build/crontab index 1b3dfd8..bbc25db 100644 --- a/build/crontab +++ b/build/crontab @@ -1 +1 @@ -0 6,18 * * * cd /app && bash /app/run_all.sh >> /proc/1/fd/1 2>> /proc/1/fd/2 +0 */4 * * * cd /app && bash /app/run_all.sh >> /proc/1/fd/1 2>> /proc/1/fd/2 diff --git a/generate_status.py b/generate_status.py index ed505ae..c3a5cb6 100644 --- a/generate_status.py +++ b/generate_status.py @@ -84,8 +84,8 @@ def main(): help="ISO timestamp of scrape start (default: now)") parser.add_argument("--duration", dest="duration", type=int, default=None, help="Run duration in seconds") - parser.add_argument("--keep", dest="keep", type=int, default=5, - help="Number of history entries to keep (default: 5, 0=unlimited)") + parser.add_argument("--keep", dest="keep", type=int, default=20, + help="Number of history entries to keep (default: 20, 0=unlimited)") args = parser.parse_args() start_time = args.start_time or datetime.now().isoformat(timespec="seconds")