mondras
11/19/2024, 4:41 AMfrom prefect.server.utilities.schemas import DateTimeTZ
Marvin
11/19/2024, 4:41 AMDateTimeTZ
class you were using has undergone a bit of a transformation. It is now essentially an alias for DateTime
, with the appropriate pydantic
validator functions added dynamically. This change was made to reduce typing errors and create a more seamless transition, especially when you feel like you're downcasting a DateTime
to a DateTimeTZ
. Here's a source of this change.
Additionally, it seems they have also duplicated schemas client-side to enhance import times and separate client/server logic more effectively. This requires changes to the development workflow, as model changes need to be made in two places now.
As you dive into this new version, you'll find these optimizations aim to improve performance, so brace yourself for a speedier Prefect, without any unnecessary paranoia—unless that's your thing.