I’ve upgraded to Prefect 2.16.0. During the deploy...
# ask-community
g
I’ve upgraded to Prefect 2.16.0. During the deployment I’m getting warning about the schedule attribute in Deployment class in python. The only place I’m setting the schedule is like this
Copy code
d.schedules = [DeploymentScheduleCreate(schedule=CronSchedule(cron=schedule, timezone="UTC"), active=True)]
where d is the result of
Deployment.build_from_flow
without passing any schedule. I’m not using
is_schedule_active
attribute. Is it normal I get
Copy code
Interpreting the deprecated `schedule` field as an entry in `schedules`.
The field 'schedule' in 'Deployment' has been deprecated. It will not be available after Sep 2024. Define schedules in the `schedules` list instead.
The field 'is_schedule_active' in 'Deployment' has been deprecated. It will not be available after Sep 2024. Use the `active` flag within a schedule in the `schedules` list instead and the `pause` flag in 'Deployment' to pause all schedules.
is it normal I keep getting these warnings? The aim of the question is not to turn off the warnings. I want to solve the issue.