sforman
05/31/2022, 3:01 PMconst stream = new KinesisStream(stack, "Stream", {
consumers: {
consumer1: {
function: {
handler: "functions/lambda.handler",
timeout: 5,
retryAttempts: 5
},
},
},
});
with the function that will timeout
export const handler: any = async (event) => {
console.log("Run");
await sleep(20000);
};
function sleep(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
it times out, but doesn't retry - same goes for throwing errors, no retryCarlos Daniel
05/31/2022, 3:36 PMFrank
sst start
or after u sst deploy
?