Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.sunny-dev.info/llms.txt

Use this file to discover all available pages before exploring further.

Cron jobs execute scheduled work inside a Revolte environment. Use them for cleanup tasks, report generation, cache warming, reconciliation, and periodic integrations.

Before you start

  • Node.js 18+

Schedule syntax

SyntaxRuns
0 3 * * *Every day at 03:00 UTC
*/15 * * * *Every 15 minutes
0 */6 * * *Every 6 hours
0 9 * * MONEvery Monday at 09:00 UTC
Schedules use UTC by default. Store timezone-specific behavior in the command or application code when business rules require it.

Configuration

Define your cron job in revolte.yaml to control schedules, commands, and retry behavior.

Create and test a job

1

Define job

Add the CRON_JOB service block with schedule, command, and retry behavior.
2

Inject dependencies

Bind databases, caches, object storage, and secrets needed by the task.
3

Run manually

Execute the job once in staging before enabling the schedule.
4

Enable schedule

Promote the job to production after logs confirm expected behavior.