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
{{ message }}
Repository navigation
Fits that run past Ray Serve's 900 s timeout (408): time-aware admission, stop cancelled work #50
On prod, two tabicl-v2 fits were admitted (memory estimate OK) but ran past Ray Serve's request_timeout_s: 900 (inference-platform flux/app/prod/ray-llm-app.yaml:65). Replica log:
POST /tabctx/v1/tabctx/fit CANCELLED 899995.9ms (500×65,000)
... CANCELLED 899997.7ms (1,000×30,000)
The client got a 408 after 15 minutes. Gateway users get the same: its upstream timeouts (920 s) are deliberately longer than Ray's.
Problems
Admission checks memory, not time. It admits shapes it can't finish inside the request timeout.
No way to run a long fit. No async fit, no keepalive (tabctx#46, item 7).
Plan
Measure first: after a cancelled fit, does the GPU stay busy, and when are the slot and reservation released?
Propagate cancellation to the worker (a cancel flag checked between stages or ensemble members, or kill and respawn the worker as the last resort) and release the reservations.
Time-aware admission. Fit a time model from measured fits, like the memory estimator (rows × features → seconds, per backend and device), and refuse with a clear 413 or 503 code when the estimate exceeds the timeout minus a margin. The message should suggest the async path once it exists.
Async fit (submit, then poll with retry_in_secs) for fits that can't run synchronously. It can share the dataset-id model: a fit is pending until done, and predict on a pending id returns 409 with Retry-After.
Accept
No admitted fit ends in 408 in the sweep.
After a client gives up, GPU, slot and host reservation are released within seconds.
The time estimate is within 2× on the sweep's shapes.
changed the title [-]P1: fits that run past Ray Serve's 900 s timeout (408) — time-aware admission, and stop cancelled work[/-][+]Fits that run past Ray Serve's 900 s timeout (408): time-aware admission, stop cancelled work[/+]on Oct 20, 2026
Activity
[-]P1: fits that run past Ray Serve's 900 s timeout (408) — time-aware admission, and stop cancelled work[/-][+]Fits that run past Ray Serve's 900 s timeout (408): time-aware admission, stop cancelled work[/+]