Skip to content

Commit 3db950e

Browse files
Merge pull request #1999 from rluvaton/patch-1
docs(lifecycle-events): add that app.close doesn’t really close
2 parents 00af29f + 6034169 commit 3db950e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/fundamentals/lifecycle-events.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,5 @@ class UsersService implements OnApplicationShutdown {
109109
}
110110
}
111111
```
112+
113+
> info **Info** Calling `app.close()` doesn't terminate the Node process but only triggers the `onModuleDestroy()` and `onApplicationShutdown()` hooks, so if there are some intervals, long-running background tasks, etc. the process won't be automatically terminated.

0 commit comments

Comments
 (0)