Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

every(5).minutes.between("04:30", "12:00")? #182

Open
Jamian opened this issue Dec 1, 2017 · 5 comments
Open

every(5).minutes.between("04:30", "12:00")? #182

Jamian opened this issue Dec 1, 2017 · 5 comments

Comments

@Jamian
Copy link

Jamian commented Dec 1, 2017

I've had a look through and I can't seem to figure out if it's possible to achieve something similar to the title with existing functionality, in a clean way. I'd like to avoid having to have a whole load of repeateded lines for every 5minute mark inbetween the hours I need to run. If not is this something that could be looked at implementing?

I have a requirement to run a task every 5 minutes, all day, every day. There's a scheduled window every day however where this task will fail, so I need to be able to run it every 5 minutes outside of this window.

E.g. if the window is 04:00 - 04:05 I need to be able to do every(5).minutes.between("04:06": "03:59") or something similar.

Cheers

@hestuppfodarn
Copy link

Interested in the same feature.

@jziolkowski
Copy link

create the job to start every 5 mins, but inside the job check if the actual time is outside of the window. A simple if.

@ghost
Copy link

ghost commented Mar 6, 2018

Hi, what commend would you use to check the time? thanks

@underclass
Copy link

@Jamian did you get this to work, could you help with your example, thanks!

@Jamian
Copy link
Author

Jamian commented Jun 19, 2018

@underclass Unfortunately not using schedule like I'd hoped. I'd advise going with the suggestion from @jziolkowski if that works for you - it didn't for us so we just opted to go down a completely different route. Would still very much like this feature though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants