Telemetry
SQL recipe collection

Background jobs SQL recipes

Measure retries, failures, queue age, backlog growth, stalled work, and recovery time for workers, imports, cron tasks, and async jobs.

Beginnerjob_runs

Measure Background Job Retry and Failure Rate

Find unreliable jobs by comparing successful runs, retries, failures, and tail duration.

See SQL and result
Intermediatejob_events

Find Stalled Background Jobs With SQL

Join job start and finish events to identify work that exceeded its expected completion window.

See SQL and result
Beginnerjob_runs

Measure Queue Wait Time by Job

Separate time spent waiting in a queue from execution duration and compare p50 and p95 delay by job name.

See SQL and result

Adapt the event contract before the threshold

Keep the analysis pattern, but validate table names, field types, business definitions, time windows, and minimum-volume rules against your own events.

SQL reference