HOTFIX 3: comment signatura (int, boolean) — deploy R__018 padal 42883; force refresh po PATCH kalibrace
All checks were successful
CI and deploy / migration-check (push) Successful in 18s
CI and deploy / deploy (push) Successful in 1m0s

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 (7da7205
i 18bf93a) 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:
Dusan Vojacek
2026-06-12 14:54:42 +02:00
parent 18bf93a801
commit 9213d3544b
2 changed files with 4 additions and 2 deletions

View File

@@ -148,7 +148,9 @@ async def patch_pv_forecast_calibration(
detail="PV forecast calibration row missing; run migration V057", detail="PV forecast calibration row missing; run migration V057",
) )
await conn.execute( 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, site_id,
) )
row = await conn.fetchrow( row = await conn.fetchrow(

View File

@@ -54,7 +54,7 @@ begin
end; end;
$fn$; $fn$;
comment on function ems.fn_refresh_site_pv_delta_profile_cache(int) is comment on function ems.fn_refresh_site_pv_delta_profile_cache(int, boolean) is
'Přepočte a uloží delta_profile_cache pro site (volá fn_pv_forecast_delta_profile).'; 'Přepočte a uloží delta_profile_cache pro site (volá fn_pv_forecast_delta_profile).';
create or replace function ems.fn_pv_forecast_delta_profile_cached( create or replace function ems.fn_pv_forecast_delta_profile_cached(