Netzo Logo

CRON

Automate repetitive tasks and workflows effortlessly with scheduled executions using built-in support for cron expressions.

The CRON module allows you to schedule tasks to run at specific times or intervals. You can use it to automate repetitive tasks, such as sending emails, generating reports, and more. CRON jobs are defined using a simple and flexible syntax that allows you to specify the exact times and intervals at which they should run.

What are CRON Jobs

CRON jobs are defined using a string format known as a cron expression. A cron expression represents a set of times, using 5 space-separated fields:


* * * * *
| | | | |
| | | | +---- Day of the Week   (0 - 7) (Sunday=0 or 7)
| | | +------ Month of the Year (1 - 12)
| | +-------- Day of the Month  (1 - 31)
| +---------- Hour              (0 - 23)
+------------ Minute            (0 - 59)

Example expressions

  • 0 * * * * - Executes a task at the start of every hour.
  • 30 9 * * 1 - Runs a task at 9:30 AM every Monday.
  • 0 0 1 * * - Schedules a task to run at midnight on the first day of every month.

How it works