Initial commit - Event Planner application
This commit is contained in:
21
node_modules/@nestjs/common/interfaces/shutdown-hooks-options.interface.d.ts
generated
vendored
Normal file
21
node_modules/@nestjs/common/interfaces/shutdown-hooks-options.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Options for configuring shutdown hooks behavior.
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface ShutdownHooksOptions {
|
||||
/**
|
||||
* If true, uses `process.exit()` instead of `process.kill(process.pid, signal)`
|
||||
* after shutdown hooks complete. This ensures the 'exit' event is properly
|
||||
* triggered, which is required for async loggers (like Pino with transports)
|
||||
* to flush their buffers before the process terminates.
|
||||
*
|
||||
* Note: Using `process.exit()` will:
|
||||
* - Change the exit code (e.g., SIGTERM: 143 → 0)
|
||||
* - May not trigger other signal handlers from third-party libraries
|
||||
* - May affect orchestrator (Kubernetes, Docker) behavior
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
useProcessExit?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user