Skip to Content
nyx logonyx guide

Schedule Internals

Reading time:1 min read

The schedule system stores tasks, tracks when they should run, and executes them with middleware and error handling.

Schedule system components

Specifically, these components are:

Execution flow

Registration and lifecycle

When you add a schedule, the ScheduleManager stores it in the ScheduleRepository, asks the ScheduleExecutionScheduler to create a job, and then emits ScheduleEventEnum.ScheduleAdd. Removing a schedule follows the same coordination path in reverse and emits ScheduleEventEnum.ScheduleRemove.

Loading…

Runtime execution

When the job fires, the ScheduleJobAdapter hands control to the ScheduleExecutor, which checks middlewares, executes the schedule's tick() method, and forwards errors to the configured ScheduleErrorHandler.

Loading…

Next, see the documentation of each component, where you'll find what it does and how to replace it.

Edit on GitHub

Last updated on

On this page