Skip to main content

SchedulerOptions

Options related to scheduled tasks..

Signature

schedulerStrategy

The strategy used to execute scheduled tasks. If you are using the DefaultSchedulerPlugin (which is recommended) then this will be set to the DefaultSchedulerStrategy.

tasks

propertyScheduledTask[]

The tasks to be executed.

runTasksInWorkerOnly

propertyboolean
Default:true

Whether to run tasks only in the worker process. Generally this should be left as true, since tasks may involve expensive operations that should not be allowed to interfere with the server responsiveness.

This option mainly exists for testing purposes.

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