Skip to content

Commit

Permalink
Disable callbackWaitsForEmptyEventLoop to allow lambda to continue ru…
Browse files Browse the repository at this point in the history
…nning after returning a response
  • Loading branch information
philmcmahon committed Jan 9, 2025
1 parent 365c1aa commit e23e1b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ if (runningOnAws) {

// eslint-disable-next-line @typescript-eslint/no-explicit-any
api = async (event: any, context: any) => {
context.callbackWaitsForEmptyEventLoop = false;
if (!serverlessExpressHandler) {
await serverlessHandler;
}
Expand Down

0 comments on commit e23e1b5

Please sign in to comment.