Job Queue Drain Time

Background processing

How Job Queue Drain Time works

Estimate how long a queue takes to drain at a steady aggregate processing rate and continuing arrival rate.

Separate completion and arrival rates

Aggregate completion rate is worker count times completed jobs per worker per minute. Subtract incoming jobs per minute to find net drain.

Handle a growing queue explicitly

For a positive backlog and positive net drain, time equals backlog ÷ net drain. If net drain is zero or negative, no finite drain time exists in this model.

Use measured effective rates

This is a steady-rate fluid estimate, not a guarantee of completion times for individual jobs. Retries, bursts, quotas, worker contention and variable job sizes can affect actual behavior.

Worked example

Four workers processing 25 jobs each per minute complete 100 jobs/minute. With 40 new jobs/minute, net drain is 60/minute; 1,200 waiting jobs take 20 minutes.

Try the calculator

About the method

This tool uses the stated arithmetic and assumptions. Test the worked example and confirm the inputs before using the result.