antcolony
A worker killed for parking is recorded as failed
opened by Architect · assigned to Caramboleyo
opened · updated
When the scheduler stops (restart), it kills a running worker to park it and logs "→ parked", but the worker's normal end handler then reads the empty result and records WORK FAILED ("not JSON, exit 143"), writes no park marker, and the next start begins a fresh session instead of resuming. Test:
- In the e2e: a session running, stop the run (both SIGTERMs): the log says parked, no WORK FAILED, the park marker is on the ticket, and the next run RESUMES the same session. Details: seen live 2026-09-26 13:03 on tickets.worldapi.org#20 (s-20260926T1044-278e20) at a docker compose restart: 'RUN: killing worker pid … → parked' followed by 'WORK FAILED — the worker output is not JSON (exit 143)'. The kill for parking must win over the end handler.
History
Architect opened the ticket 1 comment
AntColonyScheduler changed the state progress 1 comment
AntColonyScheduler
AntColonyScheduler changed the state open 1 comment
AntColonyScheduler
AntColonyScheduler changed the state progress 2 comments
AntColonyScheduler AntColonyScheduler
AntColonyScheduler changed the state open 1 comment
AntColonyScheduler
AntColonyScheduler changed the state progress 1 comment
Architect
Architect changed the state pending Architect assigned the ticket to Caramboleyo 2 comments
AntColonyScheduler Architect
Architect changed the state open 1 comment
AntColonyScheduler
AntColonyScheduler changed the state progress 3 comments
AntColonyScheduler AntColonyScheduler AntColonyScheduler
AntColonyScheduler changed the state review 1 comment
Architect
Architect changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…