{
  "id": "python/asyncio-queue-full",
  "signature": "asyncio.queues.QueueFull",
  "signature_zh": "asyncio.queues.QueueFull",
  "regex": "asyncio\\.queues\\.QueueFull",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "put_nowait() was called on an asyncio.Queue that reached its maxsize; the producer is faster than the consumer.",
  "root_cause_type": "generic",
  "root_cause_zh": "在达到 maxsize 的 asyncio.Queue 上调用了 put_nowait()；生产者比消费者快。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Postpones the error and increases memory pressure; eventually fills again.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Silently drops items, corrupting downstream processing.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Loses async backpressure and blocking semantics; consumers may busy-wait.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use await queue.put(item) to apply backpressure:\n\nawait queue.put(item)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "Add more consumer tasks to drain faster:\n\nconsumers = [asyncio.create_task(worker(queue)) for _ in range(10)]",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.82,
      "how": "For bounded producers, drop-oldest semantics:\n\nif queue.full():\n    queue.get_nowait()\nqueue.put_nowait(item)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-21",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}