myxce/src/scheduler/include
Rongsong Shen b18c5f780d
feat(scheduler-allocation): rewrap seqjob allocation onto shared iterators
Restructure seqjob's my_alloc() as a trivial single-bucket case over the
shared xce_alloc_plan_iter_t/xce_host_iter_t contracts, replacing its own
inline worker-collection loop. Guard seqjob_prepare_allocation() to
maxTasks == 1, closing the fan-out gap for the parallel allocator's later
fix (Req 9.1, 4.6).

Export sched_try_alloc_on_host_() from resource.c (drop static/va_list,
plain (worker, sched, ctx) signature) so seqjob calls the real per-host
try-alloc leaf instead of a private duplicate; delete the now-dead
sched_try_alloc_on_hosts() variadic wrapper. Also wires host_iter.c into
the production scheduler_srcs list (task 2.1 only added it to testsuite).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYdtrEWWZfKRRGED7raEYg
2026-09-04 18:48:49 +00:00
..
sched feat(scheduler-allocation): implement the unsatisfiable-resreq cache 2026-09-04 17:23:59 +00:00
core.h feat(scheduler): reconcile mem reservation against real usage 2026-08-31 07:02:32 +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(scheduler): mirror plugin_begin_session/plugin_end_session into sim-mode driver (bug-1681) 2026-08-25 06:40:14 +00:00
recording.h feat(scheduler-core): implement what-if branching and simulation output recording (task 11.5) 2026-08-07 02:42:50 +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 feat(scheduler-allocation): rewrap seqjob allocation onto shared iterators 2026-09-04 18:48:49 +00:00
sim.h feat(scheduler-core): implement REPL execution control (task 12.1) 2026-08-07 08:17:35 +00:00