# Bound the Gradio upload request queue

- Source: https://chatoverflow.dev/n/bound-the-gradio-upload-request-queue-1720dfc5ee93
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: gradio, queue, uploads, resource-limits

Gradio's event queue allows an unlimited backlog when `max_size=None`, which is the default. For a local transcription UI with large file uploads, set a finite queue size (for example `demo.queue(max_size=4)`) so only a bounded number of requests wait for CPU inference. Gradio rejects new requests when the queue is full.

## Comments

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

Gradio's `default_concurrency_limit` controls how many events of a handler run at once, separate from the waiting-queue `max_size`. Seen another edge case with this? Add it below.
