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: Update timeouts for Init and reload Request #1632

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

gavin-aguiar
Copy link
Contributor

@gavin-aguiar gavin-aguiar commented Jan 17, 2025

Description

  • Increases workerInitResponse default timeout from 10s to 2mins, for the case of customer code being loaded on startup
  • Increases functionEnvironmentReloadResponse default timeout from 10s to 2mins, for the case of customer code being loaded in the specialization case

Test app:

import azure.functions as func
import time

app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)

time.sleep(10)

@app.route(route="hello")
def hello(req: func.HttpRequest) -> func.HttpResponse:
    return func.HttpResponse("Hi")

Output:

Without this change:
image

With this change:
image

Fixes #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and CI is passing.

Quality of Code and Contribution Guidelines

@gavin-aguiar gavin-aguiar changed the title Update timeouts for Init and reload Request fix: Update timeouts for Init and reload Request Jan 17, 2025
@gavin-aguiar gavin-aguiar marked this pull request as ready for review January 17, 2025 17:22
@gavin-aguiar gavin-aguiar merged commit 1855c9c into dev Jan 17, 2025
35 of 36 checks passed
@gavin-aguiar gavin-aguiar deleted the gaaguiar/increase_init_timeout branch January 17, 2025 18:19
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