In the first line after defining your function module, add the following line
context.callbackWaitsForEmptyEventLoop = false;
callbackWaitsForEmptyEventLoop
- The default value is true.
- .
false, AWS Lambda, callback, . AWS Lambda , Node.js( , Lambda , AWS Lambda )
this article