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
F15558732: D21271.diff
Tue, Apr 29, 5:13 AM
F15534364: D21271.diff
Wed, Apr 23, 11:50 PM
F15452410: D21271.id50654.diff
Mar 29 2025, 4:34 AM
F15449893: D21271.id50651.diff
Mar 28 2025, 12:44 PM
F15446775: D21271.id.diff
Mar 27 2025, 8:10 PM
F15439107: D21271.diff
Mar 26 2025, 5:46 AM
F15384823: D21271.id.diff
Mar 14 2025, 8:57 PM
F15316191: D21271.diff
Mar 6 2025, 6:25 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