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

Is there a "weekday" setting? #249

Closed
vgoklani opened this issue Sep 27, 2018 · 3 comments
Closed

Is there a "weekday" setting? #249

vgoklani opened this issue Sep 27, 2018 · 3 comments

Comments

@vgoklani
Copy link

Is there a "weekday" setting, for jobs that only run M-F? Otherwise i have to do this:

schedule.every().monday.at("7:15").do(something())
schedule.every().tuesday.at("7:15").do(something())
schedule.every().wednesday.at("7:15").do(something())
schedule.every().thursday.at("7:15").do(something())
schedule.every().friday.at("7:15").do(something())
@Yonodactyl
Copy link

Your best option is to have a feature that checks a condition that executes only if the days of the week are not Saturday or Sunday.
You can use int values from 0 to 6 and only execute if value < 5.

@SijmenHuizenga
Copy link
Collaborator

Hi! This feature request is being tracked in #129.

If you feel like this request is different you are welcome to commend and we can re-open :)

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