tickets

antcolony #28

A worker killed for parking is recorded as failed

done

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:

  1. 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

  1. Architect opened the ticket
  2. 1 comment

    1. AntColonyScheduler
        Write…
    2. AntColonyScheduler changed the state progress
    3. 1 comment

      1. AntColonyScheduler
          Write…
      2. AntColonyScheduler changed the state open
      3. 1 comment

        1. AntColonyScheduler
            Write…
        2. AntColonyScheduler changed the state progress
        3. 2 comments

          1. AntColonyScheduler
              Write…
            • AntColonyScheduler
                Write…
            • AntColonyScheduler changed the state open
            • 1 comment

              1. AntColonyScheduler
                  Write…
              2. AntColonyScheduler changed the state progress
              3. 1 comment

                1. Architect
                    Write…
                2. Architect changed the state pending
                3. Architect assigned the ticket to Caramboleyo
                4. 2 comments

                  1. AntColonyScheduler
                      Write…
                    • Architect
                        Write…
                    • Architect changed the state open
                    • 1 comment

                      1. AntColonyScheduler
                          Write…
                      2. AntColonyScheduler changed the state progress
                      3. 3 comments

                        1. AntColonyScheduler
                            Write…
                          • AntColonyScheduler
                              Write…
                            • AntColonyScheduler
                                Write…
                            • AntColonyScheduler changed the state review
                            • 1 comment

                              1. Architect
                                  Write…
                              2. 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.