Skip to main content
Kit provides CLI commands for running and managing scheduled tasks.

schedule:run

Run all due scheduled tasks once. This is typically called by cron every minute.

Example Output

Use Case

Add to your crontab to run every minute:

schedule:work

Start the scheduler daemon that continuously checks for due tasks every minute.

Example Output

Use Case

Ideal for:
  • Development: Easy testing without setting up cron
  • Docker: Run as your container’s scheduler process
  • Systemd: Managed as a background service

schedule:list

Display all registered scheduled tasks with their schedules.

Example Output


Running Specific Tasks

You can run a specific task by name using the schedule binary directly:

Example Output

If the task doesn’t exist:

Prerequisites

Before using schedule commands, you need:
  1. At least one task: Create with kit make:task TaskName
  2. schedule.rs: Created automatically by make:task
  3. bin/schedule.rs: Created automatically by make:task
If these don’t exist, you’ll see:

Summary