Report internalError outcome for overloaded exceptions#6668
Report internalError outcome for overloaded exceptions#6668
Conversation
overloaded-type exceptions are generally due to some internal limit being hit – they are generally unrelated to the worker CPU limit and not something directly caused by a worker script, so internalError fits better than exceededCpu. Note that only exceptions without a qualifying exception detail are affected, for those we continue to report a more precise outcome.
|
The change looks correct and well-placed. Let me review the full analysis:
The change is small, correct, and well-reasoned. The ordering in the if-else chain is safe. LGTM |
overloaded-type exceptions are generally due to some internal limit being hit – they are generally unrelated to the worker CPU limit and not something directly caused by a worker script, so internalError fits better than exceededCpu. Note that only exceptions without a qualifying exception detail are affected, for those we continue to report a more precise outcome.
=====================
As suggested by @dom96 when overloaded exceptions came up.
Also see the downstream PR.