Scott Zelenka
03/26/2020, 8:19 PMschedule=Schedule(
clocks=[
IntervalClock(
start_date=pendulum.datetime(2020, 1, 1, tz='UTC'),
interval=datetime.timedelta(days=1),
parameter_defaults=dict(
sfdc_listener_name='CustomerService',
sfdc_report_url='...'
)
),
IntervalClock(
start_date=pendulum.datetime(2020, 1, 1, tz='UTC'),
interval=datetime.timedelta(days=1),
parameter_defaults=dict(
sfdc_listener_name='OneSupport',
sfdc_report_url='...'
)
)
]
),
However, it seems that when this registered with Prefect Cloud, only the first Schedule is setup.
Do I need to create two different Flows to have the same logic execute with different parameters on a schedule?Kyle Moon-Wright
03/26/2020, 8:28 PMScott Zelenka
03/26/2020, 9:12 PMschedule=Schedule(
clocks=[
CronClock(
cron='0 0 * * *',
parameter_defaults=dict(
sfdc_listener_name='CustomerService',
sfdc_report_url='...'
)
),
CronClock(
cron='0 0 * * *',
parameter_defaults=dict(
sfdc_listener_name='OneSupport',
sfdc_report_url='...'
)
)
]
),
Couldn't the scheduler check the parameter_defaults
to evaluate if they're the same or not? Or at least throw an error during the build process (when duplicate clocks are detected in the schedule) so I don't have to iterate through multiple build/deploys to get the desired results?
Attempting to modify the cron command to see if that has any difference on the clocksKyle Moon-Wright
03/26/2020, 9:33 PMChris White
03/26/2020, 11:04 PMMarvin
03/26/2020, 11:04 PM