Skip to content
Back to features
Background jobs

Automations

Define scheduled and manual background jobs with defineAutomation in workspace source.

Read the technical documentation
Automations dashboard showing templates, schedules, and run settings

What it is

Automations are server jobs discovered from src/automation/+<lower_snake_case>.ts. They compile into the Vite build and run on a schedule or collection event.

What you author

  • One default export in src/automation/+<lower_snake_case>.ts
  • Cron schedules or collection-event triggers
  • Read and write logic through the same runtime facilities used by hooks

When to use them

Use automations for periodic reconciliation, compliance checks, or background work that should not block a user mutation. For per-record side effects, use hooks instead.

Next feature

Remote functions

Coordinate records and external systems in one controlled action.