Page MenuHomePhabricator

Treat PHP7 "Throwable" exceptions like other unhandled "Exception" cases in the worker queue
ClosedPublic

Authored by epriestley on May 19 2020, 5:39 PM.
Tags
None
Referenced Files
F18809909: D21271.id.diff
Sun, Oct 19, 6:01 PM
F18803931: D21271.diff
Sat, Oct 18, 4:55 AM
F18786304: D21271.diff
Tue, Oct 14, 6:27 PM
F18736393: D21271.diff
Oct 1 2025, 5:44 AM
F18734299: D21271.id.diff
Sep 30 2025, 10:51 PM
F18673038: D21271.id.diff
Sep 25 2025, 9:07 AM
F18656553: D21271.id50654.diff
Sep 22 2025, 10:52 PM
F18653455: D21271.id50654.diff
Sep 21 2025, 1:35 PM
Subscribers
None

Details

Summary

See PHI1745. See T12855. Under PHP7, errors raised as Throwable miss this "generic exception" logic and don't increment their failure count. Instead, treat any "Throwable" we don't recognize like any "Exception" we don't recognize.

Test Plan
  • Under PHP7, caused a worker task to raise a Throwable (e.g., call to undefined method, see D21270).
  • Ran bin/worker execute --id ....
  • Before: worker failed, but did not increment failure count.
  • After: worker fails and increments failure count as it would for other types of unknown error.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable