Repository navigation
[CB] Fail faster - #48334
[CB] Fail faster#48334
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
CI recapDashboard: View test results in Grafana |
|
Thks, this does the trick. Delivering FAILED outputs even when the batch processor was never created removes the case my granular timeout was working around. Closing #48301 in favour of this. One thing to confirm: |
* Regroup fatal error under the bg thread status * Fail at add request * Fail fast in get outputs * Nit * Actually fail the request before processor is created * No more loud failure * Fixed some issues with is_finished
This PR fixes #48303 and makes error handling more redundant in CB:
fatal_errorattribute lived awkwardly next tobackground_thread_status, an object meant to keep track of the bg thread status (shockingly). Sincefatal_erroris there for consumers to check if the thread is still running, and if not why, it is now an attribute of thebackground_thread_statusobjectadd_requestnow returns ealry when you try to add a request after a fatal error. It does not fail, because the current API is not built that way, but we can change that downstream.get_outputalso returns early if the manager had afatal_errorget_outputtimeout stayed similar but the waypending_requestsare failed now ensures that even if the processor is not created when the manager fail, there will be an output delivered for pending request. This eliminates the need for a more granular timeoutis_finishedbecause it's mostly used asis_finished_or_failed, there might be a name change down the road but out of scope hereIt supersedes #48301.
Tests run well. This script no finishes fast: