@karmaniverous/jeeves-runner
    Preparing search index...

    Interface Notifier

    Notifier interface for job completion events.

    interface Notifier {
        dispatchResult(
            result: { durationMs: number; error: string | null; status: string },
            jobName: string,
            onSuccess: string | null,
            onFailure: string | null,
            logger: NotifyLogger,
        ): Promise<void>;
        notifyFailure(
            jobName: string,
            durationMs: number,
            error: string | null,
            channel: string,
        ): Promise<void>;
        notifySuccess(
            jobName: string,
            durationMs: number,
            channel: string,
        ): Promise<void>;
    }
    Index

    Methods

    • Dispatch notification based on execution result and per-job channel config.

      Parameters

      • result: { durationMs: number; error: string | null; status: string }
      • jobName: string
      • onSuccess: string | null
      • onFailure: string | null
      • logger: NotifyLogger

      Returns Promise<void>

    • Send a failure notification to a Slack channel.

      Parameters

      • jobName: string
      • durationMs: number
      • error: string | null
      • channel: string

      Returns Promise<void>

    • Send a success notification to a Slack channel.

      Parameters

      • jobName: string
      • durationMs: number
      • channel: string

      Returns Promise<void>