feat(growth): close same-item reconciliation loop
This commit is contained in:
@@ -93,7 +93,7 @@ def _pchome_growth_backfill_due(*, now=None) -> tuple[bool, str]:
|
||||
|
||||
status = str(latest.get("status") or "").lower()
|
||||
cooldown_hours = float(os.getenv("PCHOME_GROWTH_BACKFILL_COOLDOWN_HOURS", "4"))
|
||||
if status == "failed":
|
||||
if status in {"failed", "degraded", "partial"}:
|
||||
cooldown_hours = float(os.getenv("PCHOME_GROWTH_BACKFILL_RETRY_HOURS", "1"))
|
||||
elapsed_hours = max(0.0, (current - last_run).total_seconds() / 3600)
|
||||
if elapsed_hours >= cooldown_hours:
|
||||
|
||||
Reference in New Issue
Block a user