From f121bee121821fd6d130c7a1d4274ac965a06414 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 27 May 2026 18:23:21 +0000 Subject: [PATCH] fire-planner: update recompute CronJob comment to reflect lazy refresh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As of fire-planner@4da58fe the account_snapshot cache is refreshed lazily on each /networth, /networth/history, /progress request when older than NETWORTH_CACHE_TTL_DAYS (default 1). The recompute CronJob runs Monte Carlo only — no longer assumed to coordinate with the wealthfolio-sync schedule. [ci skip] --- stacks/fire-planner/main.tf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/stacks/fire-planner/main.tf b/stacks/fire-planner/main.tf index 6e9e04a3..52905505 100644 --- a/stacks/fire-planner/main.tf +++ b/stacks/fire-planner/main.tf @@ -348,9 +348,14 @@ resource "kubernetes_service" "fire_planner" { } } -# Monthly recompute on the 2nd at 09:00 UTC. Wealthfolio-sync runs on -# the 1st at 08:00, so account_snapshot is fresh by the time the -# planner picks up. +# Monthly recompute on the 2nd at 09:00 UTC. +# +# This runs `recompute-all` (the Monte Carlo Cartesian sweep), NOT +# `ingest`. The /networth path no longer depends on an ingest CronJob — +# as of 2026-05-27 the account_snapshot cache is refreshed lazily on +# every /networth, /networth/history, /progress request when older than +# NETWORTH_CACHE_TTL_DAYS (default 1). See +# fire_planner/ingest/wealthfolio.py :: refresh_account_snapshots_if_stale. resource "kubernetes_cron_job_v1" "fire_planner_recompute" { metadata { name = "fire-planner-recompute"