Justin Trautmann
11/22/2023, 4:16 PMprefect -m prefect.engine
to prefect flow-run execute
, with the consequence that an agent on the newest version of prefect cannot start runs in any infrastructure that has prefect<2.12.0 (the version when flow-run execute
was introduced) installed. while this specific problem can be solved by overwriting the command, the underlying incompatibility issue can only be solved in general by either redeploying the old deployments with the latest prefect version or setting up a new work pool with a new worker.
updating all older flow is quite cumbersome in our organization as responsibilities for individual flows lie withing different teams.
running multiple agents for multiple prefect versions adds additional costs and complexity to creating the deployments.
is there maybe another solution to it that i am not seeing currently?
what is prefect's general strategy in keeping agents or workers and the rest of the code base compatible across minor versions? can we be confident that future deployments with future versions of prefect will still be able to run with today's workers with the same major version?
happy to receive any feedback.Kevin Grismore
11/22/2023, 6:36 PMFROM
part of the Dockerfile and build and push their images.
• When the worker upgrade occurs, work pools and/or deployments are also updated to use the newly built images, perhaps during a window when fewer flows are running.
• Optionally, if your organization has multiple environments like dev and staging, roll out these changes one environment at a time to ensure compatibility.
It's true that new Prefect releases are frequent, and version and compatibility management is one of the less fun things to worry about, so ensuring that upgrades only happen when they really need to is the best way to reduce overhead.Justin Trautmann
11/23/2023, 9:57 AMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by