https://prefect.io logo
Title
h

Hamza Naanani

09/30/2022, 11:16 AM
Hello, Is there backward compatibility for deployments ? Let's consider the following situations : 1 - Build deployment with prefect 2.0 => Run it with agent prefect 2.4 2 - Build deployment with prefect 2.4 => Run it with agent prefect 2.0 Can we do either of those? Or should we always build and run with the same version ? Because if if it's the latter, it will be really hard to upgrade to a different version in the future
1
j

Jeff Hale

09/30/2022, 5:22 PM
Hi Hamza. Good question. We have backwards compatibility between Prefect agents and deployments with different versions of Prefect 2. Both scenarios should work fine. In general, there shouldn’t be breaking changes. If there are breaking changes in the future, we’ll communicate via announcements, deprecation warnings, and release notes over several releases. We encourage users to use Prefect Cloud or an updated OSS Prefect server version to get all the latest and greatest features. 🙂 For more on compatibility, see this Discourse topic.
h

Hamza Naanani

10/04/2022, 2:19 PM
Thanks for your answer, but I couldn't run prefect 2.0 codes on prefect 2.4 agents. I had a problem when I tried using kubernetes infrastracture as the agent (2.4) told me that the cheksum of the deployment bloc doesn't match.
j

Jeff Hale

10/04/2022, 2:23 PM
The block checksum message should just be a warning - things should still work fine. Are you able to share an MRE with error message?
h

Hamza Naanani

10/04/2022, 3:03 PM
Yes, it was a warning, but it still didn't work because it couldn't parse a value in the file. I ended updating prefect version in all the code it at 2.4 and it worked. So I believe you should try on your side, I'll try to reproduce the bug and send it here when I get some time.