Skip to content

shutdownGracefully

shutdownGracefully(app, options?): Promise<ShutdownReport>

Runs the shutdown sequence once, without touching signals or the process. installGracefulShutdown calls it; tests and custom runners can too.

INestApplicationContext

Pick<GracefulShutdownOptions, "drainTimeoutMs" | "flush" | "logger" | "deadlineMs"> = {}

Promise<ShutdownReport>