zibri
    Preparing search index...

    Default cron service implementation of Zibri.

    Implements

    Index

    Constructors

    Properties

    cronJobs: CronJob[] = []

    The cron jobs that are registered.

    Methods

    • Runs just after the app initializes. This is useful for things like the cron or websocket service, which creates new work that might rely on other services already being operational.

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

      Parameters

      Returns 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.

      Returns Promise<void>