Branch 1: failed run journal + bisect Infeasible + granulární relaxace (bez vypnutí evening push)
Some checks failed
CI and deploy / migration-check (push) Failing after 14s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-06-06 22:23:59 +02:00
parent 1429d402e5
commit 2a963c9793
7 changed files with 593 additions and 72 deletions

View File

@@ -0,0 +1,14 @@
-- Journal neúspěšných běhů plánovače (Solver: Infeasible po celém retry řetězci).
alter table ems.planning_run
add column if not exists error_text text;
comment on column ems.planning_run.error_text is
'Chybová zpráva u status=failed (typicky Solver: Infeasible); aktivní plán se nemění.';
comment on column ems.planning_run.status is
'Stav plánu: draft, approved, active, superseded, comparison (shadow běh), failed (solver selhal).';
create index if not exists idx_planning_run_site_failed
on ems.planning_run (site_id, created_at desc)
where status = 'failed';