Configuring Maximum Duration for Hobby on Vercel Functions in Django #7094
Replies: 4 comments 1 reply
-
I am also encountering this same issue with a FastAPI server. When I have this block:
it does not seem to work and Vercel deployment fails. Requesting help please |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
Exact same problem in facing. Any fixes yet? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Based on this changelog: https://vercel.com/changelog/vercel-functions-for-hobby-can-now-run-up-to-60-seconds
As per new changelog Now hubby accounts on vercel can increase limit up to 60 seconds. My Django app works perfectly for this vercel.json::
{
"version": 2,
"builds": [{"src": "omninepse/wsgi.py","use": "@vercel/python","config": { "maxLambdaSize": "15mb", "runtime": "python3.12" }}],
"routes": [{"src": "/(.*)","dest": "omninepse/wsgi.py"}]
}
To increase the limit allowed upto 50sec for hubby acc I changed as below which failed to deploy::
{
"version": 2,
"builds": [{"src": "omninepse/wsgi.py","use": "@vercel/python","config": { "maxLambdaSize": "15mb", "runtime": "python3.12" }}],
"routes": [{"src": "/(.*)","dest": "omninepse/wsgi.py"}],
"functions": {"stocks/ofun.py": {"maxDuration": 50}}
}
Example
No response
Steps to Reproduce
{
"version": 2,
"builds": [{"src": "omninepse/wsgi.py","use": "@vercel/python","config": { "maxLambdaSize": "15mb", "runtime": "python3.12" }}],
"routes": [{"src": "/(.*)","dest": "omninepse/wsgi.py"}],
"functions": {"stocks/ofun.py": {"maxDuration": 50}}
}
Beta Was this translation helpful? Give feedback.
All reactions