Skip to content

Instantly share code, notes, and snippets.

@anna-geller
Created December 19, 2021 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anna-geller/eca0306bf1377facb3708185c008dab4 to your computer and use it in GitHub Desktop.
Save anna-geller/eca0306bf1377facb3708185c008dab4 to your computer and use it in GitHub Desktop.
# 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