chronos icon indicating copy to clipboard operation
chronos copied to clipboard

date range in schedule

Open wlodi83 opened this issue 10 years ago • 13 comments

Hi, is there a way to define job running only between Monday and Friday?

wlodi83 avatar Mar 11 '14 16:03 wlodi83

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 .

mrdmnd avatar Mar 11 '14 17:03 mrdmnd

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.

wlodi83 avatar Mar 12 '14 09:03 wlodi83

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.

isterin avatar May 29 '14 04:05 isterin

Is this issue scheduled in the upcoming releases ?

anoopsin avatar Mar 06 '15 20:03 anoopsin

+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.

mjbroekman avatar Mar 06 '15 22:03 mjbroekman

+1 i have jobs that need to run on specific weekdays.

gdhagger avatar May 13 '15 17:05 gdhagger

+1 financial company where most jobs don't make sense to run over the weekends.

pauldwolfeimc avatar Sep 01 '15 07:09 pauldwolfeimc

+1 (scheduled security checks only on work days)

bkarstaedt avatar Sep 02 '15 12:09 bkarstaedt

+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

bluescreen10 avatar Sep 23 '15 20:09 bluescreen10

+1. I have to set up multiple jobs to work around this. The "cron format" support would really help.

jialu98 avatar Oct 27 '15 20:10 jialu98

+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?

grepsr avatar Oct 29 '15 08:10 grepsr

+1. It's too old thread though, any progress or workaround?

Xeite avatar Nov 27 '17 04:11 Xeite

+1 seems no one work progress on this?

ydp avatar Dec 20 '17 07:12 ydp