Skip to content

Panicking event hooks kill the worker task #100

Closed

Description

@CodingAnarchy

The fire_job_* event hooks run without catch_unwind. A panicking user hook kills the worker task, and the job it was running stays Running until its lease expires and the reaper picks it up.

Expected: a panicking hook is logged and contained. The job's outcome is recorded as usual, and the worker keeps polling.

Fixing it needs unwind-safety work at each hook call site, or one wrapper that runs hooks in a guarded future.

Found during the post-2.2.0 bug hunt (#99); not fixed there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions