Created
August 27, 2020 21:59
-
-
Save anna-anisienia/72a610578b2936ba4248349d395b2cb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from prefect.schedules import Schedule | |
from prefect.schedules.clocks import CronClock | |
import pendulum | |
schedule = Schedule(clocks=[CronClock("0 2 * * *", | |
start_date=pendulum.datetime(2020, 8, 28, | |
tz="Europe/Berlin") | |
)]) | |
schedule.next(3) # to see next 3 schedules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment