HOTFIX 3: comment signatura (int, boolean) — deploy R__018 padal 42883; force refresh po PATCH kalibrace
Throttle commit změnil signaturu fn_refresh_site_pv_delta_profile_cache na (int, boolean default false), ale comment on function dál mířil na (int) → repeatable migrace selhala (function does not exist), oba deploye (7da7205i18bf93a) spadly — na produkci NENÍ nic z delta hotfixů. PATCH kalibrace nově volá refresh s p_force=true (throttle nesmí zadržet přepočet po změně parametrů). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -148,7 +148,9 @@ async def patch_pv_forecast_calibration(
|
||||
detail="PV forecast calibration row missing; run migration V057",
|
||||
)
|
||||
await conn.execute(
|
||||
"select ems.fn_refresh_site_pv_delta_profile_cache($1::int)",
|
||||
# p_force=true: uživatel právě změnil kalibraci — throttle 6 h nesmí
|
||||
# nechat starou cache (čtenář ji od HOTFIXu 2/2 vrací bez přepočtu)
|
||||
"select ems.fn_refresh_site_pv_delta_profile_cache($1::int, true)",
|
||||
site_id,
|
||||
)
|
||||
row = await conn.fetchrow(
|
||||
|
||||
Reference in New Issue
Block a user