Repository navigation
DLS v0.3.1 — pause/resume race fixed
What was broken
pause() then resume() on a job whose transfer had not finished unwinding left it stuck in paused forever.
Two writes raced:
pause()parks the job aspaused- the aborted transfer's handler ran
#stopAs(host_restart)and wrotepausedagain — over thequeuedstate a concurrentresume()had just set - the scheduler never saw a queued job, so nothing restarted
The fix
#runonly parks a job that is stillrunning#stopAsrefuses to touch a job nobody is running
How it was found
test/acceptance.test.mjs — the ten acceptance criteria from SPEC §12, written today against a real HTTP server and the real transport. Criteria 2–8 had no automated coverage until now; the race surfaced on the first honest run.
Tests
30 offline cases, 7 of them the SPEC acceptance list.
node --test # 30 pass