You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(managed): keep waiting on an unknown status, and name it
Reverses the status inversion from the previous commit, and takes the
belt-and-braces route on the run-readiness question rather than arguing
it a third time.
The inversion traded one failure mode for a worse one. Enumerating the
in-flight statuses does make a missing status surface in one round trip
instead of a timeout -- but it also means a status added upstream fails
every query the moment it appears, where the arrangement it replaced cost
one slow call. That asymmetry was not worth the diagnosis, and the actual
defect in the `interrupted` case was never the waiting: it was that the
timeout said only "did not finish", never which status it had been
waiting on. Both timeouts now carry it, in both clients, so the next
missing status costs one slow call and names itself in the error.
Separately, `_fetch_result_arrow` now waits out a result that reports
itself not ready. A run reports `succeeded` only once its result is saved
and ready, so this is unreachable, and the review was right that nothing
in this package demonstrated that. Tolerating it is cheap and settles the
question in code: the Arrow endpoint answers a result which is not ready
with a small refusal rather than with data, so waiting there costs one
tiny request -- which is the whole difference from waiting on the JSON
result body, and the reason this is not a return to what was removed.
0 commit comments