Documentation

Cron jobs

Run commands on a schedule with standard cron syntax, time zones, run history and manual runs.

A cron job runs a command on a schedule using the image of its latest deploy. Each run starts a fresh container, runs the command to completion and stops. You pay only for the seconds it runs (minimum one minute per run).

Create one

New → Cron job, choose the repository and set:

  • Schedule: standard cron syntax, for example */15 * * * * (every 15 minutes) or 0 3 * * * (03:00 every day).
  • Time zone: for example America/Mexico_City; UTC by default.
  • Command: what to run, for example node scripts/cleanup.js or python manage.py send_digests.
rebasable services create nightly-report --type cron --cron "0 3 * * *" --cron-tz "America/New_York" --start-cmd "npm run report"

Behaviour

  • If a run is still going when the next one is due, the next one is skipped (no overlap).
  • Each run is recorded with its status, duration and logs (Cron job → Runs, or rebasable services cron-runs).
  • Run now triggers a manual run (rebasable services run nightly-report).
  • Failed runs trigger notifications if you enabled them.

Schedule cheatsheet

Expression Meaning
* * * * * every minute
*/5 * * * * every 5 minutes
0 * * * * every hour
0 9 * * 1-5 09:00 on weekdays
0 0 1 * * midnight on the first of each month