Created
December 19, 2021 17:33
-
-
Save anna-geller/eca0306bf1377facb3708185c008dab4 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
# Option 1: set on the Parameter task | |
with Flow("parametrized_flow", schedule=schedule) as flow: | |
param = Parameter("x", default=1) | |
# Option 2: set on the clock | |
clock = IntervalClock( | |
start_date=now, interval=every_minute, parameter_defaults=dict(x=9) | |
) | |
schedule = Schedule(clocks=[clock]) | |
with Flow("parametrized_flow", schedule=schedule) as flow: | |
param = Parameter("x") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment