Skip to content

v0.14.1 — 修复 spawn 后误报「无 worker」(等心跳再判死)

Choose a tag to compare

@evolution301 evolution301 released this 10 Nov 11:15
· 4 commits to main since this release

[0.14.1] - 2026-11-10

Fixed — false "no worker" alarm right after a spawn

ensure_worker returns the instant the detached process is created, but the
heartbeat lands 1–3 s later (cold Python start). The consumer check added in
0.14.0 trusted the spawn result and could report "worker could not be started"
while the worker was in fact booting (reproduced in a parallel-dispatch smoke
test: 3 tasks queued, worker pid alive seconds later).

  • One _ensure_consumer() path now waits up to 10 s for the heartbeat whenever
    a worker is expected, and only then fails (exit 1). Single dispatch, parallel
    dispatch and tower review all use it.
  • Tests that fake a spawn now fake worker_alive too (a fake consumer must
    answer both questions).