Skip to content

Specify Visibility Timeout for SQS other than 6 * function timeout #361

@johncourt

Description

@johncourt

Start from the Use-case

SQS allows visibility timeout up to 12 hours.

To achieve this I need to set the worker timeout to 2 hours so lift can calculate 6 * 2 = 12 hours. But I want my lambda to time out after a few seconds not 2 hours, wait 12 hours and try again.

Example Config

From the docs:

constructs:
    my-queue:
        # ...
        worker:
            handler: src/worker.handler
            memorySize: 512
            timeout: 10

Implementation Idea

Add an attribute called queueTimeout which overrides the default 6 * worker timeout behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions