Skip to main content

Scheduler

Home > @backstage/plugin-search-backend-node > Scheduler

Scheduler responsible for all search tasks.

Signature:

class Scheduler 

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the Scheduler class

Methods

MethodModifiersDescription
addToSchedule(options)Adds each task and interval to the schedule. When running the tasks, the scheduler waits at least for the time specified in the interval once the task was completed, before running it again.
start()Starts the scheduling process for each task
stop()Stop all scheduled tasks.