serverless-offline icon indicating copy to clipboard operation
serverless-offline copied to clipboard

Timeout feature disappeared?

Open markoj3s opened this issue 4 years ago • 3 comments

Hi!

Seems like timeout cannot occur locally (of course I made sure the --noTimeout was not set) and I can't find any Task timed out after XXX log printing logic inside the serverless-offline source code. Is this on purpose and --noTimeout is not being used anymore?

To simulate a timeout, I added

await new Promise((resolve) => setTimeout(resolve, 3000));

at the very beginning of my lambda function and set the lambda timeout to timeout: 2

Did I miss something perhaps?

markoj3s avatar Feb 17 '21 03:02 markoj3s

Hi everyone. Same for me, timeout doesn't work. Any progress?

psamusev avatar Jan 11 '22 12:01 psamusev

Any news on this? I too am unable to force a timeout.

bensquire avatar May 27 '22 13:05 bensquire

I'll have to investigate, this should still be working.

dnalborczyk avatar Jun 30 '22 02:06 dnalborczyk

https://github.com/dherault/serverless-offline/issues/1051

dnalborczyk avatar Aug 19 '22 01:08 dnalborczyk