Skip to content

Cron jobs

Cron jobs run commands automatically, for example the Laravel scheduler, wp-cron.php, or a report script. Manage them from the Cron Jobs menu.

Click Tambah cron job (Add cron job), then fill in:

  • Jadwal (Schedule): choose a preset or write a five-field cron schedule.
  • Perintah (Command): the command to run.
  • Keterangan (Note, optional): a reminder for yourself.

The available presets are @hourly, @daily, @weekly, @monthly, and @yearly.

Examples of five-field schedules (minute, hour, day of month, month, day of week):

Schedule Meaning
*/15 * * * * Every 15 minutes
0 2 * * * Every day at 2:00 AM
0 3 * * 0 Every Sunday at 3:00 AM

Cron jobs run as your account’s user, starting in your home folder. An example for Laravel:

Terminal window
cd ~/domains/yourstore.com && php artisan schedule:run

A cron job can be paused without deleting it, and resumed at any time. You can also change its schedule, command, and note.

The number of cron jobs is limited by your account’s package. Sending cron job output to email is not available yet.