Skip to content

Configure timeouts on HTTP requests - #1062

Open
zetter-rpf wants to merge 1 commit into
mainfrom
configure-http-timeouts
Open

zetter-rpf wants to merge 1 commit into
mainfrom
configure-http-timeouts

Conversation

@zetter-rpf

Copy link
Copy Markdown
Contributor

Status

What's changed?

We don't currently have timeout configured, which means they are quite large (30-60 seconds) and can exhaust dynos.

Configure timeouts. These are quite generous - I would expect 1s should be enough for most requests, but we don't have good visibility on this for the moment. I've chosen to start with 5/10 seconds and then we can always ratchet this down further in the future.

The timeouts are documented in:
https://redirect.github.com/lostisland/faraday/blob/main/lib/faraday/options/request_options.rb#L16-L29

We don't currently have timeout configured, which means they are quite large (30-60 seconds) and can exhaust dynos.

Configure timeouts. These are quite generous - I would expect 1s should be enough for most requests, but we don't have good visibility on this for the moment. I've chosen to start with 5/10 seconds and then we can always ratchet this down further in the future.

The timeouts are documented in:
https://redirect.github.com/lostisland/faraday/blob/main/lib/faraday/options/request_options.rb#L16-L29
@cla-bot cla-bot Bot added the cla-signed label Oct 16, 2026
@zetter-rpf
zetter-rpf marked this pull request as ready for review October 16, 2026 08:10
@github-actions

Copy link
Copy Markdown

Test coverage

94.11% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/38871948285

@zetter-rpf zetter-rpf changed the title Configure timeouts HTTP requests Configure timeouts on HTTP requests Oct 16, 2026

@adrian-rpf adrian-rpf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good limits set, we should monitor numbers over the first week once this is deployed.

This branch was successfully deployed

1 active deployment
editor-api-p-configure--pum6ez — 24b5cfd6 Deployed Oct 16, 2026 by raspberrypiherokubot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants