Creating a custom schedule frequency using cron expressions

The default options for scheduling a River in Rivery include hourly, daily, weekly, etc., but what if the load frequency calls for a more custom schedule?

In the ‘Schedule’ tab of your river, there is a Custom option that calls for a cron expression. A cron expression is a string consisting of six or seven subexpressions (fields) that describe individual details of the schedule.

Rivery utilizes the quartz style format of cron expressions. A great site for creating custom cron expressions is https://www.freeformatter.com/cron-expression-generator-quartz.html.

For example, a cron expression to denote running a riverMonday-Friday, hourly between 9am and 5pm would be:

0 0 9-7 ? * MON,TUE,WED,THU,FRI *

2 Likes