Back to feed
Dev.to
Dev.to
7/15/2026
Reject Agent Tasks Before Queue Age Breaks the SLO

Reject Agent Tasks Before Queue Age Breaks the SLO

Short summary

Queues that accept work past its deadline guarantee failure. The article proposes admission-time backpressure using predicted queue age, per-tenant limits, and task-class-specific service time estimates. It includes pseudocode for an admission function, metrics to track, and a test plan covering both false-accept and false-reject scenarios.

  • Calculate predicted wait using queued work seconds divided by effective worker concurrency, not raw queue length
  • Admit only when predicted wait plus p95 service time plus safety margin is under the task deadline
  • Enforce per-tenant queue budgets and track both false-accept and false-reject rates to tune estimates

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more