dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.16k stars 794 forks source link

How to set timeout properly #1741

Open peebles opened 8 months ago

peebles commented 8 months ago

I've set "timeout" in the provider section of the serverless.yml file to 300, and I am calling my function with "RequestResponse". My function takes about 3 minutes or so to run. But serverless offline is retrying my function after 120 seconds, and does this a few times and finally errors out with a [TimeoutError]: Connection timed out after 120000ms. I don't expect any retries.

dnalborczyk commented 8 months ago

@peebles as far as I know we don't have any automatic retries in place. could you provide a small repro repository?