Hierarchy (View Summary)

Implements

  • OnModuleDestroy

Constructors

Properties

loggerService: ConsoleLoggerService
stateCron: State = State.Stopped

Accessors

  • get ExecutionFrequencySeconds(): number
  • Returns how frequently the job will be executed in seconds

    Returns number

Methods

  • The job which will be executed by the cron job. Must be implemented by the derived class

    Returns Promise<void>

  • Starts the CRON Job executing. Will execute "synchronise" immediately on invocation and then every x seconds as distated by the environment variable EXECUTION_FREQUENCY_SECONDS.

    Returns Promise<void>

    If service is already started