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

Wait to start consuming requests #174

Closed
charlesgardyn opened this issue Oct 18, 2023 · 4 comments
Closed

Wait to start consuming requests #174

charlesgardyn opened this issue Oct 18, 2023 · 4 comments

Comments

@charlesgardyn
Copy link

Is there a way to make the function do some execution before start receiving requests, like connecting to a database?

@ejizba
Copy link
Contributor

ejizba commented Oct 19, 2023

Hi @charlesgardyn what plan are you using? Consumption? Premium? A warmup trigger might work, although it's not supported on all plans. I've filed this issue to track that work: #176

If you're on consumption (like most people), we'd have to come up with an alternative. You can definitely run code at app startup in various ways, but requests might be starting to queue up, so not sure how much that helps.

@charlesgardyn
Copy link
Author

I'm using Premium

@castrodd
Copy link
Member

castrodd commented Nov 3, 2023

@charlesgardyn Warmup triggers are supported on Premium. Have you been able to try them for your use case? Let us know if that addresses your needs and I will close this issue once we hear back from you.

@charlesgardyn
Copy link
Author

It does, thank you!

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

No branches or pull requests

3 participants