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 공식업데이트됨 일 년 전