Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Scheduler

Manages scheduled jobs (payments and notifications). Jobs are executed every 5 minutes.

Hierarchy

  • any
    • Scheduler

Index

Properties

Accessors

Methods

Properties

timerCheck

timerCheck: Timer

Timer to fetch jobs from the database.

Accessors

Static Export assignment Instance

Methods

check

  • check(): Promise<void>
  • Check for jobs to be executed. This should once every run every 5 minutes.

    Returns Promise<void>

execute

  • Counts how many scheduled jobs are stored on the database.

    Parameters

    Returns Promise<void>

init

  • init(): Promise<void>
  • Init the Scheduler and start the check timer.

    Returns Promise<void>

queue

  • Add the specified job to the database.

    Parameters

    • job: ScheduledJob

      The job to be queued and saved to the database.

    Returns void

start

  • start(): void

stop

  • stop(): void

Generated using TypeDoc