The
Scheduler for PCF syntax for specifying schedules is a variation on the Quartz CRON format. The main variations are the lack of support for both
Seconds and
Year in the schedule expression. All expressions must be 5 segments delimited by a space:
MIN HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK
.
Note:
- CRON syntax does not support the Seconds or Years column
- Either the Day-of-Month or Day-of-Week must contain a “?”
- You must add a space after the last wildcard and the closing double quote (")
For example, to run a Scheduler job every hour at the top of the hour:
cf schedule-job test "0 * ? * * "
Scheduling job test for spring-music to execute based on expression 0 * ? * * in org cf-support / space pivotal as [email protected]
OK
References: