Skip to main content
Version: v2.0

Cron event

Cron jobs are a standard method of scheduling tasks to run on your server. Cron is a service running in the background that will execute commands (jobs) at a specified time, or at a regular interval. Jobs and their schedules are defined in a configuration file called a crontab.

# event for Scheduling a task for every minute.

cron.* * * * *.Asia/Kolkata: //event key
fn: every_minute

  • cron.*: This is the cron syntax for the field representing minutes. The asterisk (*) in this position means "every minute," so the event is scheduled to run every minute.

  • * * * * *: These asterisks represent the other cron fields, which specify the schedule for hours, days of the month, months, and days of the week, respectively.

  • Asia/Kolkata: This is a timezone specification. It indicates that the event is scheduled to run in the Asia/Kolkata timezone. Kolkata is a city in India, and this timezone corresponds to the Indian Standard Time (IST).