1 個回答
- 最新
- 最多得票
- 最多評論
3
As you are using node.js I think the issue is that the function returns before the function finished updating the database. Once the function returns, the Lambda execution environment is frozen and it will be unfrozen when the next request is received.
You should either update the DB using a synchronous mode, i.e., use await
when updating the DB, or make sure that the context.callbackWaitsForEmptyEventLoop
is set to true
. See more information here.
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前