Israeli Bank Importer - v1.44.5
    Preparing search index...

    Interface IProcessLifecycle

    Frozen handle of the four process-lifecycle functions consumed by src/Index.ts and the future ImporterBootstrap.

    interface IProcessLifecycle {
        safeShutdown: () => Promise<Procedure<{ status: string }>>;
        handleFatalError: (error: unknown) => Promise<never>;
        handlePipelineFailure: (failure: { message: string }) => Promise<never>;
        shutdownApiGracefully: () => Promise<Procedure<{ status: string }>>;
    }
    Index
    safeShutdown: () => Promise<Procedure<{ status: string }>>

    Best-effort API shutdown that never throws.

    handleFatalError: (error: unknown) => Promise<never>

    Handles an unrecoverable error: logs it, notifies, and exits 1.

    handlePipelineFailure: (failure: { message: string }) => Promise<never>

    Handles a pipeline-level failure (non-throw): notifies and exits 1.

    shutdownApiGracefully: () => Promise<Procedure<{ status: string }>>

    Gracefully shuts down the API during process termination.