Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Global function timeout does not set the queue visibility timeout to x6 timeout #388

Open
tgdn opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tgdn
Copy link

tgdn commented Apr 23, 2024

Description

When setting the serverless global function handler timeout as follows:

provider:
  name: aws
  timeout: 450

The resulting queue visibility timeout remains the default 36 seconds which results in a failed deployment.

CREATE_FAILED: NameOfWorkerQueue
Resource handler returned message: "Invalid request provided: Queue visibility timeout: 36 seconds is less than Function timeout: 450 seconds

Version of Lift:

serverless-lift: 1.28.1

How to Reproduce

service: api
frameworkVersion: "3"

provider:
  name: aws
  deploymentMethod: direct
  region: eu-west-1
  architecture: arm64
  memorySize: 256
  timeout: 450
  runtime: nodejs20.x
  iamRoleStatements:
    - Effect: "Allow"
      Action:
        - ses:*
      Resource: "*"
    - Effect: Allow
      Action:
        - sns:*
      Resource: "*"

plugins:
  - serverless-lift

constructs:
  sendEmailWorkerQueue:
    type: queue
    worker:
      handler: src/sendEmail.handler
      timeout: 450
    alarm: myemail@example.com

Additional Information

No response

@tgdn tgdn added the bug Something isn't working label Apr 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant