Skip to main content

DefaultSchedulerPlugin

This plugin configures a default scheduling strategy that executes scheduled tasks using the database to ensure that each task is executed exactly once at the scheduled time, even if there are multiple instances of the worker running.

Example

Ts
Signature

options

init

method(config?: DefaultSchedulerPluginOptions) =>

The options for the DefaultSchedulerPlugin.

Signature

defaultTimeout

propertystring | number
Default:60_000ms

The default timeout for scheduled tasks.

manualTriggerCheckInterval

propertystring | number
Default:10_000ms

The interval at which the plugin will check for manually triggered tasks.

Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page