Historial / buildkite
ResueltoIncreased error rates on Agent API
Agent API
Inicio informado: 11/11/2026 · 14:07Última actualización del proveedor: 24/11/2026 · 01:35
Última consulta de PULSO: 26/11/2026 · 23:25 · Ciudad de México
## 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.
Texto del proveedor, en su idioma original. Puede describir solo parte del servicio.
Abrir fuente oficial ↗Cronología · más reciente primero
Informe final
## 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.Resuelto
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.En monitoreo
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.Identificado
Our on-call engineers have identified a performance regression causing API issues for a subset of our customers and are applying remediations.En investigación
We're investigating elevated errors and latencies with the Agent API.

