# asyncio.queues.QueueFull: 

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

## Root Cause

put_nowait() was called on an asyncio.Queue whose maxsize was reached and no consumer was draining it, so the bounded queue rejected the item.

## Version Compatibility

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

## Workarounds

1. **** (92% success)
   ```
   q = asyncio.Queue(maxsize=100)
async def producer():
    for item in items:
        await q.put(item)  # blocks when full, no QueueFull
   ```
2. **** (88% success)
   ```
   consumers = [asyncio.create_task(consume(q)) for _ in range(4)]
await producer(q)
await q.join()
for c in consumers: c.cancel()
   ```

## Dead Ends

- **** — Defers the problem; under sustained producer-heavy load memory still grows unbounded. (75% fail)
- **** — Causes data loss with no visibility; downstream counters drift. (80% fail)
