Skip to content

v5.8.1: Permanently fail jobs on any PHP Error

Latest

Choose a tag to compare

@thorewi thorewi released this 04 Sep 09:10
· 1 commit to master since this release
Expands the exception handling to treat all PHP `Error` types (e.g., `ArgumentCountError` for unknown named parameters, `DivisionByZeroError`, `Error` from calling method on `null`) as permanent job failures.

Previously, only `TypeError` was explicitly caught. Other `Error` types would fall into the default retry path, causing jobs to be re-attempted indefinitely despite representing unrecoverable code faults. This ensures jobs with fundamental code errors are marked `STATE_PERMANENTLY_FAILED` immediately, preventing wasted resources and blocking serial groups.