myxce/.kiro/specs/scheduler-core
Rongsong Shen fcb32a8b30 feat(scheduler-core): implement builtin_fcfs session and post-allocation hooks (task 2.3)
Adds begin_session/next_job/end_session/on_dispatch/on_pend, driving a
dual-cursor walk (queue then job) over builtin_fcfs's private ordq_t
state. next_job() returns candidates in (queue priority desc, job
priority desc, queue_time asc) order and NULL once exhausted;
on_dispatch removes permanently, on_pend is a true no-op.

Review flagged an unsynchronized cross-thread access risk between
next_job() (picker thread) and on_dispatch/on_pend (allocator thread)
once wired live in task 2.4 — recorded in tasks.md Implementation Notes
for that task to close before registering builtin_fcfs as the default.

Requirements: 3.2, 3.4, 3.6
2026-08-03 07:18:39 +00:00
..
brief.md add scheduler related projects 2026-07-31 17:42:13 +08:00
requirements.md add scheduler related projects 2026-07-31 17:42:13 +08:00
spec.json add scheduler related projects 2026-07-31 17:42:13 +08:00
tasks.md feat(scheduler-core): implement builtin_fcfs session and post-allocation hooks (task 2.3) 2026-08-03 07:18:39 +00:00