actionhero
    Preparing search index...

    Class Process

    Index

    Constructors

    • Returns Process

    Properties

    bootTime: number
    initialized: boolean
    initializers: Initializers
    loadInitializers: (() => Promise<void>)[]

    Type declaration

      • (): Promise<void>
      • Method run as part of the initialize lifecycle of your server. Usually sets api['YourNamespace']

        Returns Promise<void>

    running: boolean
    shuttingDown: boolean
    startCount: number
    started: boolean
    startInitializers: (() => Promise<void>)[]

    Type declaration

      • (): Promise<void>
      • Method run as part of the start lifecycle of your server. Usually connects to remote servers or processes..

        Returns Promise<void>

    stopInitializers: (() => Promise<void>)[]

    Type declaration

      • (): Promise<void>
      • Method run as part of the initialize lifecycle of your server. Usually disconnects from remote servers or processes.

        Returns Promise<void>

    stopped: boolean
    stopReasons?: string[]

    Methods

    • Parameters

      • errors: ErrnoException | ErrnoException[] = []
      • type: string

      Returns Promise<void>

    • Type Parameters

      • T

      Parameters

      • collection: { [rank: number]: T[] }

      Returns T[]

    • Returns Promise<void>

    • Register listeners for process signals and uncaught exceptions & rejections. Try to gracefully shut down when signaled to do so

      Parameters

      • stopCallback: (exitCode?: number) => void = ...

      Returns void

    • Restart the Actionhero Process

      Returns Promise<void>

    • Start the Actionhero Process

      Returns Promise<void>

    • Stop the Actionhero Process

      Parameters

      • stopReasons: string | string[] = []

      Returns Promise<void>