https://prefect.io logo
l

Leon Kozlowski

01/13/2023, 4:46 PM
I'm looking at converting some older prefect 0.X.X version flows to 2.X.X, 1 use case that I'm looking at uses multiple schedule with separate
parameter_defaults
(example below)
Copy code
abc = IntervalClock(
    start_date=pendulum.datetime(2022, 1, 12, 3, 30, 0, tz="America/New_York"),
    interval=datetime.timedelta(hours=24),
    parameter_defaults={"mart": "abc"},
)

xyz = IntervalClock(
    start_date=pendulum.datetime(2022, 1, 12, 3, 30, 0, tz="America/New_York"),
    interval=datetime.timedelta(hours=24),
    parameter_defaults={"mart": "xyz"},
)
Is there a way have a flow use multiple schedules + to pass
parameter_defaults
to a schedule in prefect 2.0?
n

Nate

01/13/2023, 8:06 PM
Hi @Leon Kozlowski it doesn't work quite the same way in prefect 2. You'd have 1 deployment with a schedule like
abc
and another with
xyz
, each of which get their own default parameters
l

Leon Kozlowski

01/13/2023, 8:06 PM
I suspected that, cool, thanks @Nate
👍 1
2 Views