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
Unknown Object (File)
Fri, Mar 29, 10:06 PM
Unknown Object (File)
Fri, Mar 29, 3:55 PM
Unknown Object (File)
Thu, Mar 28, 6:53 PM
Unknown Object (File)
Mar 24 2024, 8:29 PM
Unknown Object (File)
Mar 23 2024, 1:02 PM
Unknown Object (File)
Mar 19 2024, 1:43 AM
Unknown Object (File)
Mar 5 2024, 4:53 AM
Unknown Object (File)
Feb 26 2024, 12:28 AM
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