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

Setting timeout with serverless.yml doesn't work #273

Closed
jerrygreen opened this issue Dec 31, 2019 · 0 comments · Fixed by #275
Closed

Setting timeout with serverless.yml doesn't work #273

jerrygreen opened this issue Dec 31, 2019 · 0 comments · Fixed by #275

Comments

@jerrygreen
Copy link

jerrygreen commented Dec 31, 2019

Describe the bug

The timeout setting in my serverless.yml doesn't work. Deployed functions have their default 10 seconds.

For me this is especially important for pages/api functions, not just pages

Steps to reproduce

Deploy a project with one of the following configs:

# serverless.yml
my-app:
  component: serverless-next.js
  inputs:
    timeout: 90
    memory: 1024
# serverless.yml
my-app:
  component: serverless-next.js
  inputs:
    timeout:
      apiLambda: 90
    memory:
      apiLambda: 1024

Expected behavior
My timeout setting to be equal 1 minute 30 seconds.

Screenshots
Btw, memory input works, but timeout doesn't:

image

Desktop:

  • OS: macOS
  • Version: 10.15.2

Serverless versions:
Framework Core: 1.60.4
Plugin: 3.2.6
SDK: 2.2.1
Components Core: 1.1.2
Components CLI: 1.4.0

"serverless-next.js": "1.7.3"

Additional context
I'm trying to mitigate 503 error, which seems to be pretty popular:

#181
#222
#146

My pages/api function is pretty time consuming, will take about a minute (I'm playing with puppeteer and chrome-aws-lambda)

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 a pull request may close this issue.

1 participant