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
perf(connectors): singleflight ensureWarehouseRunning per warehouse (#420)
* perf(connectors): singleflight ensureWarehouseRunning per warehouse
Concurrent analytics queries on a cold warehouse now share one poll loop
and a single warehouses.start call. Joiners receive broadcast onStatus
updates with last-status replay; ref-counted abort cancels only when all
waiters leave.
Closes#419
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
* refactor(appkit): simplify warehouse readiness singleflight helpers
Consolidate subscribe/join/spawn into focused helpers and tighten the
abort-race handler without changing behavior.
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
* fix(connectors): grace-period abort for warehouse readiness singleflight
Delay shared poll cancellation by 100ms so React StrictMode unmount→remount
can rejoin the in-flight warmup instead of surfacing UPSTREAM_ERROR on first render.
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
* fix(appkit): run-to-completion readiness and StrictMode abort handling
Let shared warehouse warmup finish when waiters disconnect instead of a
brittle grace timer. Classify cancellations as STREAM_ABORTED, suppress
error SSE frames for them, and ignore late envelopes on aborted hooks.
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
* fix(connectors): hybrid orphan abort for warehouse readiness
Abort shared readiness polls on the next microtask when all waiters
leave before warehouses.start, so true orphans do not poll until timeout.
After start is issued, the poll runs to completion so the warm-path cache
stays primed. Synchronous StrictMode remounts rejoin before the microtask.
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
---------
Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
Co-authored-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
0 commit comments