myxce/src/scheduler/include
Rongsong Shen 077b1213d3
fix(scheduler): snapshots save a job's resreq text, not its debug dump (bug-1888)
build_wire_job() filled the saved job's submit->resreq with
format_resreq()'s human-readable dump ("Primary:\n  Tasks: ..."). The
loader's parser accepted that as a primary with neither select nor
rusage, so every job restored from a snapshot (a replay's start snapshot,
REPL snapshots) lost both.

A scheduler job now keeps the text its resreq was parsed from
(xce_sched_job_t.resreq_str, set at ingest, JOB_UPDATE and snapshot load,
freed at teardown) and the snapshot saves that; a job without it restores
as the loader's "type == any" default.

Test: test_snapshot_round_trip_keeps_job_resreq_text RED before (saved
text was the dump), GREEN after.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 10:26:21 +00:00
..
sched fix(scheduler): snapshots save a job's resreq text, not its debug dump (bug-1888) 2026-09-29 10:26:21 +00:00
cli_compat.h feat(scheduler-sim-discrete-clock): --sim-speed deprecation-warning helper and discrete-clock test binary (task 1.1) 2026-09-29 04:23:46 +00:00
core.h fix(scheduler): a batch replay exits 0 under LeakSanitizer (bug-1884, part 6) 2026-09-29 09:44:43 +00:00
decision.h feat(scheduler-core): implement session-start signal + decision callback (task 4.4) 2026-08-04 03:08:18 +00:00
driver.h feat(scheduler-core): implement record start/stop lifecycle (task 9.2) 2026-08-05 09:07:51 +00:00
plugin.h fix: spurious errors/warnings from a pc13v HA deploy (bug-1872..1877) 2026-09-28 04:35:19 +00:00
recording.h fix(scheduler): record events before the core applies them (bug-1852) 2026-09-24 08:41:55 +00:00
repl.h fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
scheduler.h fix(scheduler): mid-round rejoin config push truncated live rounds (bug-1846 part 2) 2026-09-24 06:30:34 +00:00
sim.h fix(scheduler): tear down the simulator and the core's registries at exit (bug-1884, part 1) 2026-09-29 08:50:59 +00:00