zibri
    Preparing search index...

    Runs just before the app shuts down. This is useful for things like the cron or websocket service, which creates new work that might rely on other services still being operational.

    In most cases you probably want to implement OnAppShutdown. Most relevant things like eg. The data source service are still operational there, as they implement the AfterAppShutdown interface.

    interface BeforeAppShutdown {
        beforeAppShutdown: (
            app: ZibriApplication,
            signal: "SIGHUP" | "SIGINT" | "SIGTERM" | undefined,
        ) => void | Promise<void>;
        shutdownTimeoutInMs?: number;
    }

    Implemented by

    Index

    Properties

    beforeAppShutdown: (
        app: ZibriApplication,
        signal: "SIGHUP" | "SIGINT" | "SIGTERM" | undefined,
    ) => void | Promise<void>

    Runs just before the app shuts down. This is useful for things like the cron or websocket service, which creates new work that might rely on other services still being operational.

    In most cases you probably want to implement OnAppShutdown. Most relevant things like eg. The data source service are still operational there, as they implement the AfterAppShutdown interface.

    shutdownTimeoutInMs?: number

    The timeout for after which the graceful shutdown should fail.

    30 seconds