Examples
Schedule examples
Every Minute:
* * * * * ?
This cron expression triggers a job every minute.
Every Hour at 30 Minutes:
0 30 * * * ?
Executes the job at the 30th minute of every hour.
Every Day at 9:00:
0 0 9 * * ?
Runs the job at 9:00 AM every day.
Every Monday at 18:00:
0 0 18 ? * MON
Triggers the job at 6:00 PM every Monday.
Every Last Day of the Month at 23:45:
45 23 L * ?
Executes the job at 23:45 on the last day of each month.
Every 15 Minutes between 9:00 and 17:00 on Weekdays:
0 0/15 9-17 ? * MON-FRI
Runs the job every 15 minutes between 9:00 AM and 5:00 PM on weekdays (Monday to Friday).
Every 3 Hours on the 15th Day of the Month:
0 0 */3 15 * ?
Triggers the job every 3 hours on the 15th day of each month.
Every 10 Seconds (not recommended for production):
*/10 * * * * ?
Executes the job every 10 seconds. Note: High-frequency cron jobs can impact system performance.
Every Sunday and Wednesday at 20:30:
0 30 20 ? * SUN,WED
Runs the job at 20:30 every Sunday and Wednesday.
Every 5 Minutes on Weekends (Saturday and Sunday):
0 0/5 * * 6-7 ?
Triggers the job every 5 minutes on Saturday and Sunday.
Last updated