Build an asyncio worker pool with a bounded job queue, backpressure on submit, and a graceful shutdown that drains accepted jobs and rejects new ones.
Only a few problems are open while we find out which ones people actually want. This one opens when enough people ask for it.
Used once to tell you this problem opened, then deleted. Sending it also counts as asking for the problem.
Run inference requests through a fixed pool of asyncio workers sharing one queue, isolate failures, and return results in input order.
Implement an asyncio circuit breaker with closed, open and half-open states, a single recovery probe, and protection against stale in-flight calls.
Build a per-user sliding window log rate limiter that allows at most N requests in any window of W seconds.
Group concurrent inference requests into batches that flush when full or when the oldest request has waited long enough, with cancellation and drain.
See all problems