cron express for every 30 min

2024-07-31by@tim&@ChatGPT.Model: GPT-4o
tim

cron express for every 30 min

Avatar
Avatar

A cron expression is used to schedule tasks at specific intervals. To schedule a task to run every 30 minutes, you can use the following cron expression:

*/30 * * * *

Here's a breakdown of each field in this cron expression:

  • */30: Every 30 minutes.
  • *: Every hour.
  • *: Every day of the month.
  • *: Every month.
  • *: Every day of the week.

So, the complete cron expression */30 * * * * means the task will run every 30 minutes, regardless of the hour, day, month, or day of the week.

If you need more specific scheduling or have any other questions, feel free to ask!