Casiel Didriksson Muriedas
02/01/2022, 4:39 PMexport const main: APIGatewayProxyHandlerV2<any> = async (e,context) => {
await wait(10000);
console.log(context.getRemainingTimeInMillis());
return okHandler({finished:true})
}
And the Stack Function looks like this:
const assetFunction = new sst.Function(this, "assetApiFunction", {
environment: { ...props.enviroment_vars, functionBatch: functionBatch.functionName },
handler: 'src/services/query/routes/assets.main',
timeout:29,
permissions: ['lambda',"dynamodb"]
})
Seth Geoghegan
02/01/2022, 4:48 PMCasiel Didriksson Muriedas
02/01/2022, 5:31 PMJay