rewindex

ChangesBuildkiteIncreased error rates on Agent API

Buildkite: Incident updated: Increased error rates on Agent API

Incident updateNormal progress (rule, 100%)Changed www.buildkitestatus.com (opens in new tab)
Summary

Summary pending. The diff below shows exactly what changed.

Incident page: the full timeline of updates

What changed

Struck in red is what Buildkite removed; blue is what they added. Muted text is unchanged context.

ChangedStatus#1
Before: resolved
After: postmortem
AddedUpdatepostmortem#2
Before: not present
After: Service Impact On November 11, 2026 between 18:40 and 20:02 UTC, a subset of customers sharing a database cluster experienced slow and failing Agent requests. Customers impacted would’ve observed their agents being unable to progress jobs during this time due to requests timing out. While no inbound webhooks were lost during this time, the number of Buildkite jobs completed on the affected cluster was 50-75% lower compared to the week before, as Builds took longer to complete and required manual retries. Incident Summary At 18:25 on November 11th UTC a customer enabled the Skip Intermediate Builds feature for a pipeline which had several thousand builds in the 'scheduled' state. The way this feature works is when a new build is created, for each new build background work is enqueued which aims to find all existing scheduled builds and move them to skipped, one by one. The SQL we use to skip a build follows a common pattern in our code base of updating a row by specifying both its primary key ID and it’s current state. Because there is normally a relatively small number of rows in the 'scheduled' state at any one time, there is a high probability that the PostgreSQL statistics collector (which periodically assesses the frequency of the data in tables) won’t have seen any rows in this state during its random sampling, which results in it estimating there is only 1 'scheduled' row. When comparing a query plan that uses the primary key (full) index and a (partial) state index, the query planner will pick the partial state index if both plans estimate the number of rows returned is 1. Due to the customer having several thousand 'scheduled' builds, the partial index had thousands of matching rows, making it far less efficient, leading to slower execution time. Because these queries were taking more than 1 second to execute, instead of the typical 20ms, it would take roughly 2.5 hours to skip them all. Compounding the slower queries was the build skip worker launching new attempts to skip all previous builds concurrently. This caused the number of queries executed to grow roughly quadratically as they were each evaluating the same range of not-yet-skipped builds. Within 15-20 minutes, these queries consumed almost all available database resources, causing all other database requests to be slowed or queued. At 18:44 the p90 latency was above 45 seconds, and at 18:50 an alert was triggered which paged our on-call engineers. At 19:27 we identified the inefficient query plan and began working on a fix, adding a hint to tell the planner to prefer the primary key index. This change began rolling out at 19:50 and by 20:02 service was restored. Changes we're making The skip builds worker has been updated to pre-empt older workers when a new worker is enqueued, in order to prevent multiple workers attempting to skip the same builds. We are working to improve tooling to enable us to respond more quickly to future incidents, such as the ability to manually or automatically quarantine background work that uses excessive database resources.

Compared with the previous archived version of this incident (10 to 30-minute polling). View the live incident (opens in new tab).

Archive proof

Rewindex commits each version of an incident it captures to a daily checkpoint, chains it to the day before, and has the checkpoint timestamped by FreeTSA and DigiCert. That proves these records existed by then and have not been changed since, by anyone, Rewindex included.

How the archive is checked, and what it cannot prove.

History of this incident

Tuesday, November 24

1 incident change

Wednesday, November 11

3 incident changes

Cite this

Incident updated: Increased error rates on Agent API on Buildkite’s status page, changed 2026-11-24 07:43 UTC (change 4 of 4).

Title
Incident updated: Increased error rates on Agent API
Vendor
Buildkite
Date
URL
https://rewindex.com/change/r5dcc75f022302d

All Buildkite changesBuildkite profileMarkdownJSON