Skip to main content

Configuration

Default configuration keys for @quik/scheduler. See Config Keys and Environment Variables for the full generated table.

  • scheduler.executor.database (env SCHEDULER_EXECUTOR_DATABASE) selects the database-backed executor instead of the in-memory QExecutor, when @quik/database is also registered.
  • scheduler.maxConcurrency (default 1, env SCHEDULER_MAX_CONCURRENCY) limits how many concurrent runs of the same task are allowed; overlapping runs beyond the limit are skipped and logged.
  • app.timezone (default "UTC", from @quik/core) is used to evaluate cron expressions.

Enabling the scheduler

Registering @quik/scheduler in bootstrap is not enough by itself — the module's setup() only initializes the IQScheduleExecutor/IQBackgroundRunner features when the bootstrap startScheduler flag is set. Pass it when configuring the application bootstrap (options.flags.startScheduler).