Skip to content

fix(StateMediator): Double StopEvent timeout to 60s - #1067

Open
runkelcorey wants to merge 1 commit into
masterfrom
fix-API-AAR-double-stop-event-timeout
Open

fix(StateMediator): Double StopEvent timeout to 60s#1067
runkelcorey wants to merge 1 commit into
masterfrom
fix-API-AAR-double-stop-event-timeout

Conversation

@runkelcorey

@runkelcorey runkelcorey commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Doubles sync_timeout for StopEvents in the hopes (gulp) of quashing API-AAR. This is a coarse knob to turn but I think it's premature to try other options. Since #1065, all incremental updates take less than 2s to process but the initial load of StopEvent can take upwards of 10s. It seems like the startup of the supervision tree imposes additional performance impacts on this loading process and, yesterday, dev experienced API-AAR once again.

My question for the reviewer is: is there a better way to only adjust the initial timeout? I don't want to enable this to silently take 50s on incremental loads. After investigating, I don't see a backwards compatible way to do this: timeout options are passed by a private function in S3Mediator that's used for initial as well as recurring updates. The equivalent function in Mediator is never modified and this would be a break with the existing design pattern (plus, redundant code for the CR crowding case).

@runkelcorey runkelcorey self-assigned this Aug 11, 2026
@runkelcorey
runkelcorey requested a review from a team as a code owner August 11, 2026 16:05
@runkelcorey runkelcorey added the bug Something isn't working label Aug 11, 2026
@runkelcorey
runkelcorey requested review from npatel-mbta and removed request for a team August 11, 2026 16:05
@runkelcorey
runkelcorey marked this pull request as draft August 13, 2026 14:33
@runkelcorey
runkelcorey marked this pull request as ready for review August 13, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant