Skip to content

Investigate slowness in getState GraphQL query

Context

Issue originally raised by @stejacks-gitlab in #562413 (closed).

We had an incident today related to slowness in Api GraphQL for Canary, however, this is happening on main too. This has been going on for at least a month and appears to be slowly getting worse.

GraphQL for Canary:

Screenshot_2025-08-19_at_11.57.17_AM

source

GraphQL for Main:

Screenshot_2025-08-19_at_12.08.32_PM

source

There are two endpoints that were the biggest contributors to the slowness, getPipelineHeaderData and getState.

This has paged the EOC 19 times in the past 30 days.

This ticket was created from INC-3368 and was automatically exported by incident.io 🔥

Goal

We should investigate why so many of these are taking significantly more than 1 second.

Out of scope

getPipelineHeaderData will be investigated in #562413 (closed).

Edited by François Rosé