How to schedule job on Oozie every exactly n day regardless of the month

354 Views Asked by At

I would like to schedule a job to run every n day where n is not 1 or 7. I know the syntax 0 0 */n * *, but when I check for the next execution dates, it always runs on 1st of the next month, regardless of the n day interval from the last month's run. Hence, the interval is not exactly n days. How can I properly schedule this case?

Here is the example of this problem where it will execute two days consecutively if it the date is near the end of the month. enter image description here

0

There are 0 best solutions below