From eab24bd288d63aea1d7e2f407c703a8b9f322d62 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Wed, 25 Mar 2026 08:37:59 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20stop=20clearing=20feature=20cache=20on?= =?UTF-8?q?=20every=20Argo=20run=20=E2=80=94=20auto-invalidates=20via=20co?= =?UTF-8?q?ntent=20hash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/k8s/argo/compile-and-train-template.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/infra/k8s/argo/compile-and-train-template.yaml b/infra/k8s/argo/compile-and-train-template.yaml index 36a319906..481b9f3be 100644 --- a/infra/k8s/argo/compile-and-train-template.yaml +++ b/infra/k8s/argo/compile-and-train-template.yaml @@ -393,11 +393,10 @@ spec: mkdir -p /workspace/output/hyperopt # Invalidate stale feature cache — the cache key now includes - # MBP-10 + trades dirs, so old caches (without trades/VPIN) - # won't match. But clean up the orphaned files to reclaim space. - echo "=== Clearing stale feature cache ===" - rm -f /workspace/.foxhunt_feature_cache/*.bin 2>/dev/null - echo " Done (fresh features will be computed with VPIN enrichment)" + # Feature cache persists across runs — keyed by data file hashes, + # auto-invalidates when data changes. Do NOT clear it. + echo "=== Feature cache preserved (auto-invalidation via content hash) ===" + ls -lh /workspace/.foxhunt_feature_cache/*.bin 2>/dev/null || echo " (empty — will be built on first run)" MODEL="{{workflow.parameters.model}}" case "$MODEL" in