Skip to main content

SDC Cron Scheduler Stage: How to write a Cron Expression ?

  • December 22, 2021
  • 0 replies
  • 78 views

AkshayJadhav
StreamSets Employee
Forum|alt.badge.img

If you are about to use the Cron Scheduler Stage in SDC, here are some tips for you: 

We are using "quartz.CronExpression" in the backend. This provides additional benefits of going down to seconds. 


Cron expressions are comprised of 6 required fields and one optional field separated by white space. The fields respectively are described as follows:

Field Name   Allowed Values   Allowed Special Characters
Seconds   0-59   , - * /
Minutes   0-59   , - * /
Hours   0-23   , - * /
Day-of-month   1-31   , - * ? / L W
Month   1-12 or JAN-DEC   , - * /
Day-of-Week   1-7 or SUN-SAT   , - * ? / L #
Year (Optional)   empty, 1970-2199   , - * /


You can find more information about this at the below link:
https://www.quartz-scheduler.org/api/2.1.7/org/quartz/CronExpression.html

 

The Cron Scheduler is still in the Beta phase, it will have full documentation once it is released for general use. 
------

Did this topic help you find an answer to your question?
This topic has been closed for comments