Scheduler
  • Scheduler
  • Job types
    • Http
    • Exec
    • Pipes
  • Examples
Powered by GitBook
On this page

Examples

Schedule examples

  1. Every Minute:

    • * * * * * ?

    • This cron expression triggers a job every minute.

  2. Every Hour at 30 Minutes:

    • 0 30 * * * ?

    • Executes the job at the 30th minute of every hour.

  3. Every Day at 9:00:

    • 0 0 9 * * ?

    • Runs the job at 9:00 AM every day.

  4. Every Monday at 18:00:

    • 0 0 18 ? * MON

    • Triggers the job at 6:00 PM every Monday.

  5. 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.

  6. 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).

  7. 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.

  8. Every 10 Seconds (not recommended for production):

    • */10 * * * * ?

    • Executes the job every 10 seconds. Note: High-frequency cron jobs can impact system performance.

  9. Every Sunday and Wednesday at 20:30:

    • 0 30 20 ? * SUN,WED

    • Runs the job at 20:30 every Sunday and Wednesday.

  10. Every 5 Minutes on Weekends (Saturday and Sunday):

    • 0 0/5 * * 6-7 ?

    • Triggers the job every 5 minutes on Saturday and Sunday.

PreviousPipes

Last updated 1 year ago