myxce/src/scheduler
Rongsong Shen 7a9d75d661
fix(scheduler): keep a moved job's own priority (bug-1944)
Both job-fields update paths, the core JOB_UPDATE event (core_events.c,
used by the live and sim drivers) and sched_update_existing_job()
(schedobj.c), set job->priority to the new queue's priority when a job
changed queue, while ingest gives every job 0. builtin_fcfs orders a
queue's jobs by job priority first, so a moved job overtook every job
already pending in the target queue (and snapshot restore, which sets 0,
disagreed with live for moved jobs).

Moving now only re-points job->queue; queue priority still orders the
queues themselves. test_job_move_priority.c moves a job into a priority-10
queue and checks it keeps priority 0 and does not take the only slot from
the queue's first job; test_job_update.c's in-place update case asserted
the old behaviour and now expects the job's priority to be kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-10 08:37:11 +00:00
..
include fix(scheduler): load user/host groups in the simulator too (bug-1943) 2026-10-10 08:37:11 +00:00
src fix(scheduler): keep a moved job's own priority (bug-1944) 2026-10-10 08:37:11 +00:00
testsuite fix(scheduler): keep a moved job's own priority (bug-1944) 2026-10-10 08:37:11 +00:00
CLAUDE.md test(scheduler-sim-decision-trace): bounds under large traces; update the scheduler guide 2026-10-08 17:11:52 +00:00
meson.build feat(scheduler-sim-decision-trace): compile trace sources into REPL/sim tests and the sim isolation checks 2026-10-08 14:56:31 +00:00