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

ENH: Multiple values to at/on in cond API #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Miksus
Copy link
Owner

@Miksus Miksus commented Sep 25, 2022

This PR makes this possible:

from rocketry.conds import daily, weekly

@app.task(daily.at("12:00", "18:00"))
def do_daily_twice():
    ... # Condition translates to: daily.at("12:00") | daily.at("18:00")

@app.task(weekly.on("Mon", "Fri"))
def do_weekly_twice():
    ... # Condition translates to: weekly.on("Mon") | weekly.on("Fri")

@Miksus Miksus added the built-in Relates to the built-in tasks, conditions etc. label Sep 25, 2022
@Miksus Miksus linked an issue Sep 25, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
built-in Relates to the built-in tasks, conditions etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Multiple values to at/on (conditions)
1 participant