dkron icon indicating copy to clipboard operation
dkron copied to clipboard

Run a job every N days/weeks/months/years at a specific time

Open renom opened this issue 4 years ago • 6 comments

For example: Every 3 days at 15:00:00.

renom avatar Jan 19 '22 16:01 renom

You can use something like https://crontab.guru/#0_15_/3__*

vcastellm avatar Jan 19 '22 21:01 vcastellm

It's not exactly what I mean. The */3 notation in your example implies triggering on 1 4 7 10 ... within every month. My suggestion is allowing to combine @every and @at so that the first trigger of @every will occur at the provided date.

renom avatar Jan 20 '22 06:01 renom

This is a similar to what is discussed in #823.

Because #823 was initially a misunderstanding of what Dkron uses as expressions, and this issue is an actual feature request I will quote the last most relevant part of that discussion here and then close that issue.

@vcastellm said:

I didn't know about RRULE, I think it should be possible to implement a schedule parser to handle RRULE expressions, the other alternative I'm inclined for in terms of expression expressivity is using https://en.wikipedia.org/wiki/ISO_8601 repeating interval notation.

yvanoers avatar Jan 22 '22 19:01 yvanoers

Implementing ISO 8601 repeating intervals really makes sense. The question is should it be implemented in dkron or in robfig/cron? By the way, the implementation in ajvb/kala could help here.

renom avatar Jan 23 '22 11:01 renom

Yeah I had the kala reference saved for the future, but I don't know how or when this is going to be implemented.

vcastellm avatar Jan 23 '22 22:01 vcastellm

@yvanoers Any updates on RRULES or repeating intervals?

IgnisDa avatar Feb 11 '23 18:02 IgnisDa