Skip to content

Instantly share code, notes, and snippets.

View noam3127's full-sized avatar

Noam Lustiger noam3127

View GitHub Profile
@hassy
hassy / lambda.js
Last active September 19, 2022 17:20
Different behavior of context.succeed() vs callback() in AWS Lambda
//
// Lambda's timeout needs to be >5 seconds, 10 should do
//
var startedAt = new Date();
var interval = setInterval(function () {
console.log(startedAt, new Date());
}, 1000);