Skip to content

fix(functions): set request timeout to 150 seconds when invoking functions #728

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grdsdev
Copy link
Collaborator

@grdsdev grdsdev commented Jun 5, 2025

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

No request timeout defined, which uses default URLSession timeout which is 60 seconds.

What is the new behavior?

Allow to specify a custom value for timeout a per-request basis.
Set all invoke functions requests timeout to 150 seconds

Additional context

https://supabase.com/docs/guides/functions/limits

@coveralls
Copy link

Pull Request Test Coverage Report for Build 15469746645

Details

  • 5 of 6 (83.33%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on guilherme/clibs-190-edge-function-timeout-60-seconds at 75.659%

Changes Missing Coverage Covered Lines Changed/Added Lines %
Sources/Helpers/HTTP/HTTPRequest.swift 3 4 75.0%
Totals Coverage Status
Change from base Build 15390678797: 75.7%
Covered Lines: 5225
Relevant Lines: 6906

💛 - Coveralls

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