Understanding the CRON syntax allowed with Scheduler for Tanzu
search cancel

Understanding the CRON syntax allowed with Scheduler for Tanzu

book

Article ID: 293444

calendar_today

Updated On: 07-14-2025

Products

Operations Manager

Issue/Introduction

This article explains how CRON syntax is used in the Tanzu Scheduler to automate and schedule recurring tasks.

Environment

Scheduler for Tanzu 2.0

Resolution

The Scheduler for Tanzu 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-job "0 * ? * * "
Scheduling job test-job for test-app to execute based on expression 0 * ? * *  in org test-org / space test-space as admin
OK

References: