chronos
chronos copied to clipboard
date range in schedule
Hi, is there a way to define job running only between Monday and Friday?
Interesting. Not at the moment. That might not be that hard to add, though, if you want to play around with the scheduler code. I could see if it's a quick fix today.
On Tue, Mar 11, 2014 at 9:56 AM, Łukasz Włodarczyk <[email protected]
wrote:
Hi, is there a way to define job running only between Monday and Friday?
— Reply to this email directly or view it on GitHubhttps://github.com/airbnb/chronos/issues/194 .
Right now there is not really good solution: I have to create 5 jobs starting at monday, tuesday, wednesday, thursday and friday with the 1 week duration. This is not an optimal solution. It would be great to have a way define it in one job on Chronos.
Agree. I'd like to see maybe a way to specify jobs using cron spec pattern, which allows you to specify MON-FRI. iso8601 is nice, but has these limitations.
Is this issue scheduled in the upcoming releases ?
+1 ... I have jobs that run every other day for a month, once a year and right now the only way I can see to do that is to create separate yearly jobs for each day I want it to run.
There's also #218 which is asking for essentially the same thing.
+1 i have jobs that need to run on specific weekdays.
+1 financial company where most jobs don't make sense to run over the weekends.
+1 (scheduled security checks only on work days)
+1 to support this
The current scheduling capabilities are very limited and restrictive to some common use cases like scheduling tasks at specific dates within each month/year/dates.
The cron format is much more flexible and accounts for some of those use cases. Please consider supporting cron scheduling format as well
+1. I have to set up multiple jobs to work around this. The "cron format" support would really help.
+1 really need this feature.
Is this planned any time soon?
@mrdmnd I don't have experience with Scala; however if you could point me in the right direction, I could try and add this feature myself; should not be too hard.
I think, adding a new flag like "schedulePreferredDays" which might contain [1,2,3,4,5,6,7] for the 7 days would work; and if the next generated schedule do not fall inside "schedulePreferredDays" we re-generate another day?
+1. It's too old thread though, any progress or workaround?
+1 seems no one work progress on this?