Skip to content

Timeout doesn't seem to be respected #1160

@TommyN

Description

@TommyN

Describe the bug

We have a net6.0 Lambda function (512MB Memory) with a timeout set to 2 seconds.
For some reason the timeout value doesn't seem to be respected:


@message
Task timed out after 2.53 seconds
Task timed out after 4.00 seconds
Task timed out after 2.54 seconds
Task timed out after 4.00 seconds
Task timed out after 2.54 seconds
Task timed out after 4.00 seconds
Task timed out after 2.52 seconds
Task timed out after 4.00 seconds
Task timed out after 2.54 seconds
Task timed out after 4.00 seconds
Task timed out after 2.53 seconds
Task timed out after 4.00 seconds
Task timed out after 2.53 seconds
Task timed out after 4.00 seconds
Task timed out after 2.58 seconds
Task timed out after 4.00 seconds

Expected Behavior

I expected the function to time out after 2 seconds

Current Behavior

Function times out after 4 seconds. Billing is limited to 2 seconds.

Duration: 4003.89 ms Billed Duration: 2000 ms Memory Size: 512 MB Max Memory Used: 512 MB

Reproduction Steps

N/A

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

Amazon.Lambda.Core Version="1.1.0"

Targeted .NET Platform

NET 6

Operating System and version

.NET 6 (C#/PowerShell)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions