{"version":"2.1.280","anchor":"batch-queue-pendingcount-now-includes-an-urgent-sub-queue","canonical_anchor":"batch-queue-pendingcount-now-includes-an-urgent-sub-queue","heading":"Telemetry and message queues gain a dedicated 'urgent' priority lane","tier":"internal","area":"Message Queue","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/batch-queue-pendingcount-now-includes-an-urgent-sub-queue","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### Telemetry and message queues gain a dedicated 'urgent' priority lane\n\nEvent batching, backpressure, and outbound-message queues all gained a separate 'urgent' lane that skips ahead of normal queued traffic\n\n**What**\n\n- A batching queue's pending-count now also counts items sitting in a new `urgent` sub-queue.\n\n- Telemetry batching gained a `takeUrgent()` method that drains the urgent queue up to batch-size\/byte limits, separately from normal pending-event batching.\n\n- The outbound event\/retry queue now tracks a separate `urgent` list alongside `pending`, drains both before considering itself flushed, and tracks a `backoffOwedUntil` timestamp once draining finishes.\n\n- The backpressure\/withdraw controller also tracks a separate `urgent` queue: withdrawing filters both queues, and closing folds both into in-flight\/undelivered accounting.\n\n- The durable event uploader gained an urgent fast lane that jumps ahead of the normal batch queue, with its own retry counter and backoff window, so an urgent send won't get stuck behind a slow batch's retry delay; sends that immediately follow an urgent flush are tagged `followsUrgent`.\n\n- The mailbox\/outbound event queue's `enqueue()` gained an `urgent` option that pushes straight into the urgent array, ends any active backoff early, and drains immediately, bypassing normal batching.\n\n**Why**\n\nThis gives certain events a way to skip past normal batching and backoff delays instead of waiting behind whatever else is queued, while still counting correctly toward pending totals and backpressure accounting.\n\n- Area: Message Queue\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}