Branch 1: failed run journal + bisect Infeasible + granulární relaxace (bez vypnutí evening push)
This commit is contained in:
14
db/migration/V084__planning_run_failed_status.sql
Normal file
14
db/migration/V084__planning_run_failed_status.sql
Normal 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';
|
||||
Reference in New Issue
Block a user