Repository navigation
v0.14.1 — 修复 spawn 后误报「无 worker」(等心跳再判死)
[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 andtower reviewall use it. - Tests that fake a spawn now fake
worker_alivetoo (a fake consumer must
answer both questions).