Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cancel request context when timeout exceeded #244

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

garethgeorge
Copy link
Contributor

This PR sets the request timeout (signaled by CLOUD_RUN_TIMEOUT_SECONDS) on the request context so that ff users can write functions that are deadline aware.

Functions overrunning CLOUD_RUN_TIMEOUT_SECONDS may continue to execute and spend CPU cycles but represent wasted work as the cloud functions runtime typically cuts off the response at this point, no data can be sent.

@garethgeorge garethgeorge force-pushed the garethgeorge/timeouts branch 3 times, most recently from ec88fdd to e48a489 Compare June 12, 2024 22:54
@garethgeorge garethgeorge requested a review from jrmfg June 12, 2024 23:07
@garethgeorge garethgeorge changed the title feat: cancel request context when timeout exceeded fix: cancel request context when timeout exceeded Jun 13, 2024
@jrmfg jrmfg merged commit 298bc02 into GoogleCloudPlatform:main Jun 13, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants