FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/jobs / startJobScheduler

Function: startJobScheduler()

startJobScheduler(options?): Promise<JobScheduler>

Discover job definitions and start a scheduler immediately.

This is the recommended shorthand for initializing the schema, loading the job registry, and starting the cron loop in one call.

Parameters

options?

JobSchedulerOptions = {}

Scheduler options.

Returns

Promise<JobScheduler>

A running JobScheduler instance.

Example

const scheduler = await startJobScheduler({ pollInterval: 60_000 })