{
  "id": "python/asyncio-queue-bounded-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 whose maxsize was reached and no consumer was draining it, so the bounded queue rejected the item.",
  "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": "Defers the problem; under sustained producer-heavy load memory still grows unbounded.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Causes data loss with no visibility; downstream counters drift.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "q = asyncio.Queue(maxsize=100)\nasync def producer():\n    for item in items:\n        await q.put(item)  # blocks when full, no QueueFull",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "consumers = [asyncio.create_task(consume(q)) for _ in range(4)]\nawait producer(q)\nawait q.join()\nfor c in consumers: c.cancel()",
      "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-09-24",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}