Buildkite: Increased error rates on Agent API
Affected components: Agent API
Timeline of updates
- investigating
We're investigating elevated errors and latencies with the Agent API.
- identified
Our on-call engineers have identified a performance regression causing API issues for a subset of our customers and are applying remediations.
- monitoring
With remediations applied, we are beginning to see recovery. We're continuing to monitor the decreasing latencies and error rates for the Agent API as services stabilize.
- resolved
Increased latencies and error rates with the Agent API have subsided. This performance regression affected a specific subset of our customers with tenancy on one of our database clusters.
- postmortem
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.
Changes Rewindex caught on this incident
- Incident updated: Increased error rates on Agent API
- Incident updated: Increased error rates on Agent API
- Incident updated: Increased error rates on Agent API
- Incident updated: Increased error rates on Agent API
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.
First version captured
In the 2026-11-11 checkpoint, timestamped by FreeTSA and DigiCert on . Record hash
481e3b3b8df92bdd…Version 2 captured
In the 2026-11-11 checkpoint, timestamped by FreeTSA and DigiCert on . Record hash
1a4d7e68334dbea0…Version 3 captured
In the 2026-11-11 checkpoint, timestamped by FreeTSA and DigiCert on . Record hash
69378c7cb347e9f0…Version 4 captured
In the 2026-11-11 checkpoint, timestamped by FreeTSA and DigiCert on . Record hash
a421978dba3790be…Version 5 captured
In the 2026-11-24 checkpoint, timestamped by FreeTSA and DigiCert on . Record hash
03d90efce09bb212…
Impact, status and times are the vendor’s own, as last archived. View on www.buildkitestatus.com (opens in new tab).
Cite this
Status incident (vendor impact label: minor) posted by Buildkite, started 2026-11-11 19:12 UTC, resolved after 1.1 h, 5 update(s); edited after publishing.
- Title
- Increased error rates on Agent API
- Vendor
- Buildkite
- Date
- URL
- https://rewindex.com/company/buildkite/incidents/vm95hj4pycv7
Buildkite profileRecent Buildkite incidentsAll outages on November 11, 2026Buildkite in November 2026MarkdownJSON