# asyncio.queues.QueueFull

- **ID:** `python/asyncio-queue-full`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

put_nowait() was called on an asyncio.Queue that reached its maxsize; the producer is faster than the consumer.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Use await queue.put(item) to apply backpressure:

await queue.put(item)
   ```
2. **** (88% success)
   ```
   Add more consumer tasks to drain faster:

consumers = [asyncio.create_task(worker(queue)) for _ in range(10)]
   ```
3. **** (82% success)
   ```
   For bounded producers, drop-oldest semantics:

if queue.full():
    queue.get_nowait()
queue.put_nowait(item)
   ```

## Dead Ends

- **** — Postpones the error and increases memory pressure; eventually fills again. (70% fail)
- **** — Silently drops items, corrupting downstream processing. (85% fail)
- **** — Loses async backpressure and blocking semantics; consumers may busy-wait. (75% fail)
