Skip to main content
Delphix

Customizing Policies Using Quartz Cron Scheduling (KBA4018)

 

KBA

KBA# 4018

How to Customize Policies using Quartz Cron Scheduling

In some use cases, it may be desired to configure a custom policy for snapshot or VDB refresh operations; VDB refresh on the 1st Saturday of each month at 1AM, for example. In order to accomplish this, a custom schedule can be configured using Quartz Cron scheduling.

Creating a Custom Schedule

Following the steps provided in product documentation at 

https://docs.delphix.com/docs/delphix-administration/users-permissions-and-policies/managing-policies/creating-custom-policies

Select Schedule > Custom
A new field will appear for Cron Expression

policy1.png

As the Delphix Engine utilizes standard Quartz Cron scheduling expressions, this method can be used to achieve the custom schedule desired. In the aforementioned example of 1st Saturday of each month at 1AM, the appropriate entry would be:

0 0 1 ? 1/1 SAT#1 *

In which we are specifying, left to right:
- 0 seconds
- 0 minutes
hour (0100)
Day of month
Month (1/1 indicates starting the first month, every month. Effectively this is very similar to simply using wildcard (*))
Day of week (here, indicated Saturday by SAT, and limiting to the first Saturday by #1)
Year (usually considered optional)

There are numerous resources that document the usage www.quartz-scheduler.org is a primary resource, though in case of server or documentation issues the Google cache page can be referenced at:

http://webcache.googleusercontent.com/search?q=cache:rAgWaSj69NIJ:www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06.html+&cd=2&hl=en&ct=clnk&gl=us