How does a Prefect major version upgrade start for your server?
Start by confirming the target release before you plan anything. The 3.x line is current, and the latest stable release in the supplied material is 3.9.6, dated 30 November 2026. Confirm the current release with Prefect and on the Prefect releases page before you fix a target version, because 3.9.5 and 3.9.6 both shipped within the same month. The 2.x line is the one you are leaving. Its last supplied release is 2.20.26, dated 2 September 2026, and no end-of-life date for 2.x was supplied, so ask Prefect for the published support window before you set a deadline for your cutover.
A self-hosted Prefect server bundles an API, a UI and a database that holds run state, logs, deployments, variables, work pool status, events and automations, so inventory each of those first. Check the database next: SQLite is the default, PostgreSQL is the production choice, and multi-server setups need PostgreSQL 14.9 or later plus Redis for event messaging. Confirm the Python runtime on every host, since Prefect's README says it requires Python 3.11 or later. Then review scripts and pins. The 3.9.5 notes require key=value pairs for --param and --job-variable in prefect deployment run, and list commands now reject negative --limit and --offset. If you pin fastapi or redis, 3.9.6 needs those pins below 0.165 and below 8.2. The same 3.9.5 notes also say exceptions escaping the flow engine now end the run as Crashed, which can alter alerts and retries.
The supplied material does not document the full 2.x to 3.x migration, including the order of database changes, any data conversion or a tested rollback path, so confirm each step with Prefect before you schedule anything. Ask for the breaking-change list covering your starting 2.x release, the database versions the target release supports, and whether the server schema can be upgraded in place. The 3.9.5 notes also say the V1 UI will be removed in 3.10, so if anyone on your team still uses it, plan that change separately. Before cutover, run your flows against a staging copy of the server database and decide in advance which Crashed runs and failed deployments will trigger a rollback.
Which Prefect versions still get releases and when support ends
This table lists the Prefect releases and dates that bear on an upgrade plan, from the latest stable release to the V1 UI removal announced for 3.10. Read the status column first, then confirm dates against the source note before you set a target version. The main takeaway: no end-of-life date for the 2.x line is confirmed here, so ask Prefect for that date before you decide how long to stay on 2.x.
| Version | Status or end-of-life | Date | Source note |
|---|---|---|---|
| Prefect 3.9.6 | Latest stable release | 30 November 2026 | Prefect GitHub releases page. If you pin fastapi or redis, raise the pins to below 0.165 and below 8.2. |
| Prefect 3.9.7.dev1 | Pre-release for testing only | 1 December 2026 | Prefect GitHub releases page. Keep it out of production plans until a stable release follows. |
| Prefect 3.8.8 | Patch release following 3.8.7 | 6 October 2026 | Follows 3.8.7 (26 September 2026). Prefect GitHub releases page. |
| Prefect 2.20.26 | Last 2.x release listed on this page | 2 September 2026 | No 2.x end-of-life date is confirmed here. Confirm the support end date with Prefect. |
| V1 UI removal | Scheduled for removal in Prefect 3.10 | Announced in 3.9.5 notes (24 November 2026) | Check whether your team still uses the V1 UI. Confirm the 3.10 release date with Prefect. |
What your Prefect server database and Python runtime need first
Settle your database and Python runtime before you change any version number, because both decide whether the upgrade can be tested and rolled back. A self-hosted Prefect server bundles an API, a UI and a database that records flow and task run state, logs, deployments, concurrency limits, variables, artifacts, work pool status, events and automations. Prefect server uses SQLite by default and documents PostgreSQL for production. Start by recording which backend your server actually connects to, who owns it, and when it was last backed up. If the server still runs on SQLite, prove that a restore works before anything else, because a failed upgrade is only recoverable if the data can be returned to a known state. Write down the server version, the database version and the backend in one place before any change is made.
A multi-server deployment carries a stricter floor. The Prefect self-hosted documentation calls for PostgreSQL 14.9 or later, Redis for event messaging and a load balancer in front of the servers. Confirm each of these in the live environment rather than relying on the architecture diagram, including the PostgreSQL minor version that every node connects to. Check that the Redis instance is reachable from every server and worker that emits events, because event messaging is easy to overlook during a rolling restart. Ask your platform team who owns the load balancer health checks and how a node is taken out of rotation, since a node that stays in service while another is upgraded can serve traffic from mixed versions. Record the answers as acceptance checks for the test environment.
The documented Prefect major version upgrade path, step by step
This sequence moves a self-hosted Prefect server to a newer release through checks you can record, so the cutover decision rests on staging evidence. Prefect's official upgrade documentation sets out the migration command, any schema migration tool and the downgrade procedure, so read those details there before you plan the change.
Confirm the target release and notes
Open the Prefect releases page on GitHub and identify the target version. As of 1 December 2026, the latest stable release listed there is 3.9.6, dated 30 November 2026, so confirm it is still the newest before you choose it. Read the notes for every release between your current version and the target, not only the last one, because 3.9.5 and 3.9.6 both carry changes that affect CLI scripts, dependency pins and run states. Done when the platform team has a written record of the target version and the notes reviewed.
Check the Python version on hosts
The platform team checks the Python version on every host that runs the server, workers and flow code. The Prefect README states that Prefect requires Python 3.11 or later, so record the interpreter version each host reports and upgrade any host that is older before installing the new release. Include workers in separate environments, because those are easy to miss. Done when every host reports Python 3.11 or later in a recorded check, and that list is attached to the change ticket.
Inventory CLI scripts for breaking flags
Search repositories, cron jobs and CI pipelines for calls to
prefect deployment runand the list commands. Flag two patterns:--paramand--job-variablevalues that are not written as key=value, and negative values passed to--limitor--offsetin list commands. The 3.9.5 notes require key=value for those deployment options and reject negative paging values, so these calls fail after the upgrade. Rewrite each flagged call and test it against staging. Done when the inventory lists every script, each flagged call is fixed, and each changed command runs successfully in staging.Review fastapi and redis dependency pins
Review any fastapi and redis pins in requirements files, container images and internal package indexes. The Prefect 3.9.6 notes say that if you pin these packages, the pins need to be raised to fit the release, with fastapi below 0.165 and redis below 8.2. Confirm the exact constraint in the release notes before you edit anything. Update the pins in a branch, rebuild the environment or image, and run a clean dependency resolve so conflicts appear before deployment. Done when a clean install resolves with pins that satisfy the release notes, and the lock file or image digest is recorded.
Back up and test the server database
Back up the database the Prefect server uses. Self-hosted Prefect server uses SQLite by default and PostgreSQL for production, so confirm which one your server runs before you choose a backup method. For PostgreSQL, take a full backup with your standard tooling, copy it off the host, and record its identifier, time and checksum. Also back up the server configuration and environment files. Done when a restore into a scratch database starts a Prefect server that lists the existing deployments and flow runs.
Upgrade a staging copy first
Build a staging server from the production backup and install the target release there. Keep staging close to production: the same PostgreSQL major version, the same Redis setup if you use it, and the same worker types. Read Prefect's official upgrade documentation before this step for the migration command, any schema migration tool and the downgrade procedure, and write down the rollback path you will use if staging fails. Done when the server starts, the UI loads, the logs show no migration errors, and the rollback path is recorded.
Run representative flows and deployments in staging
Run a representative set of flows and deployments on staging, including the CLI-triggered runs from the inventory, retried flows, scheduled deployments and work pool workers. Compare run states with production history. Prefect 3.9.5 notes say exceptions escaping the flow engine outside user code now end the run as Crashed, so confirm your alerting treats that state correctly. Those notes also say the V1 UI will be removed in 3.10, so identify any users who depend on it. Done when a written comparison shows matching outcomes, and every difference has an owner and a fix.
Cut over production and run a smoke test
Agree the production window with the owners of the affected flows. Pause schedules and stop workers, take a final backup, apply the upgrade using the steps proven in staging, and restart the workers. Then run a smoke test: the UI and API respond, a sample deployment triggers and completes, a scheduled run starts on time, and a deliberate test failure raises an alert. Check each result directly, since a clean error log alone does not confirm that runs completed. Done when the smoke test checklist is signed off and the rollback decision point is recorded.
Which Prefect breaking changes affect running flows and CLI scripts
Six changes in the 3.9.5 and 3.9.6 releases, plus the Python 3.11 minimum, can break scripts, alerts, dashboards and builds that work today. Each card names the team most likely to be hit and the check to run in staging before cutover.
Key=value format for deployment runs
In 3.9.5, prefect deployment run requires key=value syntax for --param and --job-variable. Any script, CI job or runbook that passes other forms must be rewritten, and script authors own that work, including wrapper scripts beyond the main entry point. In staging, rerun each invocation with production-like arguments and confirm the run starts with the parameters you expect.
Negative pagination values rejected
Starting in 3.9.5, CLI list commands reject negative --limit and --offset values. A computed offset that drops below zero at the edges of a result set now fails, and script authors running reports or cleanup jobs are most exposed. In staging, run each paginated list command on the first page, the last page and an empty result set, and confirm none sends a negative value.
Escaped exceptions now report Crashed
In 3.9.5, an exception that escapes the flow engine outside user code ends the run as Crashed. Alert rules and dashboards that match only on Failed may miss these runs, so alert owners should confirm which states their rules watch. In staging, trigger a controlled failure outside user code if you can, and check that the run is recorded as Crashed and your notification still fires.
V1 UI removal planned for 3.10
The 3.9.5 notes warn that the V1 UI will be removed in 3.10. Bookmarks, runbooks and training material that point to it will stop working, and UI users on support and operations teams will feel it first. Before scheduling the upgrade, confirm which interface each role uses, then walk those users through run lookup and manual deployment runs in the current UI in staging.
Raise fastapi and redis pins
The 3.9.6 notes say that pinned fastapi versions below 0.165 and pinned redis versions below 8.2 must be raised. Teams with pinned dependencies are affected, and the conflict surfaces when the environment resolves, so check lock files and image builds first. In staging, rebuild from a clean lock file, resolve the dependency tree, and confirm the server and workers start and complete a basic run.
Prefect releasesPython 3.11 minimum version
The Prefect README states that Prefect requires Python 3.11 or later. Worker hosts, virtual environments and container base images on an older interpreter will not meet that floor after the upgrade. Platform engineers who build worker images should check the interpreter version in every image and CI runner, then confirm each reports 3.11 or later before cutover.
Prefect READMEHow to plan a Prefect major version upgrade by environment
A single machine running the Prefect server on SQLite suits evaluation, a proof of concept or a small team with one host. The database is one file, so the plan is short, but a skipped step is easy to miss when the setup feels small. For an air-gapped host, the team moves the release packages and their dependencies across an approved transfer path and confirms that method with Prefect before the window.
- Backups: Stop the server so the copy is consistent, then save the SQLite database file and your environment settings before you install the new release.
- Staging copy: Restore that file on a second machine that runs Python 3.11 or later, then start the upgraded server against it and run your flows.
- Plugin and integration checks: Re-run your deployments and scripts, and update any
--paramor--job-variablearguments, since 3.9.5 requires key=value form. - Change window approval: The owner of the host approves the window, and the person who runs the flows confirms that work can pause during it.
- Rollback point: Keep the pre-upgrade file and the previous package version so you can reinstall and restore the copy if the upgrade fails.
Before the window, confirm that the staging server starts against the restored file and that your flows complete without manual edits.
A self-hosted server on PostgreSQL is the production pattern in the Prefect self-hosted documentation, and it keeps flow state, run history and variables in a database your team operates. Backups come from your PostgreSQL tooling, so the plan depends on the restore test you have already run. For an air-gapped site, the team moves the release packages and dependencies across an approved transfer path and confirms that method with Prefect before the change.
- Backups: Take a PostgreSQL backup before the window and restore it to a separate instance to confirm that it works.
- Staging copy: Restore the backup into a staging database, point a staging server at it, and run representative flows and a deployment.
- Plugin and integration checks: Confirm your Python runtime is 3.11 or later, recheck any fastapi and redis pins (3.9.6 requires fastapi below 0.165 and redis below 8.2), and review alerts, since exceptions escaping the flow engine now end the run as Crashed.
- Change window approval: The platform owner proposes the window, and the security or data owner signs off, because the database change affects stored run history and variables.
- Rollback point: Keep the pre-upgrade backup and the previous server package, and confirm with Prefect whether database migrations can be reversed before you plan a downgrade.
Before the window, check that the restore test passed and that the staging server runs your deployments without manual changes.
A multi-server deployment needs PostgreSQL 14.9 or later, Redis for event messaging and a load balancer in front of the API servers. The upgrade touches every node, so the plan covers the order of the change and the period when nodes run different versions. Confirm with Prefect whether mixed versions are supported during a rolling change before you set that order. For an air-gapped cluster, the team confirms with Prefect how the packages reach each node and whether every node must receive the same release.
- Backups: Back up PostgreSQL, and record the Redis and load balancer configuration, since a database backup does not capture those settings.
- Staging copy: Build a staging cluster with the same node count, PostgreSQL version, Redis setup and load balancer, then run a full rolling change through it.
- Plugin and integration checks: Verify the PostgreSQL version is 14.9 or later, recheck fastapi and redis pins, and test event-driven automations, since Redis carries the event messages.
- Change window approval: The platform, database, network and load balancer owners all approve, because a rolling change crosses each of those teams.
- Rollback point: Keep the previous package on each node and a database backup taken before the first node changes, and confirm with Prefect how to recover a partially upgraded cluster.
Before the window, confirm that load balancer health checks pass on the new version in staging and that the rollback steps have been rehearsed.
With Prefect Cloud, Prefect hosts and runs the server, so your team does not manage the server database, Redis or the load balancer. The change still reaches your environment through workers, deployments and the dependencies your flows install, and those layers need the same planning. Cloud also holds the RBAC, SSO and audit log settings that your security team reviews. Air-gapped sites cannot use this model and need one of the self-hosted tabs.
- Backups: Record your deployment definitions, work pool configuration, variables and automations, and confirm with Prefect which exports your plan supports.
- Staging copy: Run the new worker image and dependency set in a separate workspace or staging work pool before production workers change.
- Plugin and integration checks: Recheck fastapi and redis pins if you set them, update
--paramcalls to key=value form, and plan for the V1 UI removal announced for 3.10 if anyone still uses it. - Change window approval: The platform team approves worker and dependency changes, and the security team approves any change to SSO, RBAC or audit log settings.
- Rollback point: Keep the prior worker image or environment reference so you can revert workers quickly, since you cannot restore the hosted server yourself.
Before the window, confirm with Prefect which server-side changes come with the release so your worker plan covers them.
The production backup is the checkpoint before any database change
The sequence starts with an inventory of flows, scripts and pinned dependencies, then moves to CLI and pin fixes before any change reaches staging. Staging receives the upgrade and a test run first. The production database backup sits after staging and before the production upgrade, so it is the last checkpoint before any step that changes the database. If the smoke test fails, the team restores from that backup. The supplied material does not document a schema migration or downgrade procedure, so confirm the rollback point with Prefect before relying on the restore path, and test that the backup restores in staging first.
Supplied material does not document a schema migration or downgrade procedure.
What testing and rollback look like when the documentation leaves gaps
Build the test plan around the work your team depends on, starting with a staging copy of the self-hosted server. Run a representative set of flows and trigger your scheduled deployments through prefect deployment run, passing parameters in the key=value format that 3.9.5 now requires for --param and --job-variable. Check every automation and alert for runs that now end as Crashed, because 3.9.5 ends a run that way when an exception escapes the flow engine outside user code, which can break alerts written against the old outcome. Verify each API and UI call your scripts and dashboards make, including CLI list commands, since negative --limit and --offset values are now rejected. Last, confirm that no one relies on the V1 UI, which the 3.9.5 notes say will be removed in 3.10.
Treat rollback as an open item, because we have not found a documented rollback procedure for returning a self-hosted Prefect server to an earlier major version. Do not assume that reinstalling the previous package restores a working state, since the server database holds flow and task run state, deployments, concurrency limits, variables, automations and events. Your safety net is two things you can prepare now. First, back up the server database and restore it into staging to prove the restore works and that the older server can read it. Second, record the Prefect version pinned in production along with every pinned dependency, including fastapi and redis if you pin them, since 3.9.6 requires those pins to be raised so that fastapi is below 0.165 and redis is below 8.2. Store the record with the change ticket so the previous state is known exactly.
Before any production change, ask Prefect in writing which rollback approach it supports between your current and target versions, and whether the database migrations in the newer release can be reversed. Also ask whether a backup taken on the newer version can be restored to the older one, since that decides whether the backup can serve as a safety net. Confirm how the 3.10 release timing lines up with your maintenance window, because the V1 UI removal is announced for that release. Write the answers into the change plan, along with the staging test results, so an on-call engineer can follow the same steps during a failed cutover.
What a Prefect major version upgrade costs and who does the work
What drives the cost of a Prefect major version upgrade?
The cost depends on how large and how customized your Prefect estate is. The main drivers are the number of flows and deployments to review, any custom plugins or integrations that touch changed behavior, how your PostgreSQL and Redis setup is built, whether a staging environment exists to test against, and how much testing your team needs before a change window. Internal engineering time is easy to undercount, because the people who know the flows must review them. If you hire a partner, the fee comes from the written scope, so ask for a quote that prices each driver separately. The upgrade itself is a one-time project, while staging infrastructure and backup storage recur.
How long does a Prefect major version upgrade take?
The timeline follows the same drivers as the cost, so it should come from a written scope that names each step. A single server with a few flows and a working staging environment is a different project from a multi-server deployment with custom plugins and a formal change process. Ask for the testing period and the production change window as separate line items, so you can see which part waits on your team. Your change calendar often sets the schedule as much as engineering effort does, because production work needs an agreed window and a tested rollback. Start with the staging run, since its results decide how long production work takes.
What does a Prefect upgrade need from our own team?
The upgrade needs four things from your side before an engineer touches the server: a named owner, a staging environment, database backup rights and a flow inventory. The named owner makes the go or no-go calls and signs off on each change. Staging should match production closely enough that a passing run means something, including the same PostgreSQL version and, if you run one, the same Redis setup. Backup rights mean your team can take and restore a snapshot of the database that holds flow run state, logs, deployments and variables. The flow inventory lists every flow, deployment, work pool and custom integration, so nothing fails silently after cutover. You also need a change window agreed with operations and with the teams that depend on scheduled runs.
Can our own Python team upgrade Prefect without outside help?
Yes, for a single self-hosted server, as long as the team starts in staging and reads the release notes for every version between its current release and the target. Prefect requires Python 3.11 or later, so confirm your runtime before planning anything. A team that already runs Prefect flows can usually handle one server backed by a PostgreSQL database and a manageable number of flows. Multi-server deployments are different. They need PostgreSQL 14.9 or later, Redis for event messaging and a load balancer, and failures across those pieces are harder to rehearse on one machine. Regulated sites often benefit from help too, because internal and external reviewers expect evidence of testing, backups and approved changes. The deciding question is whether your team can rehearse a rollback in staging before production.
Does Prefect 2.x still receive releases, and when does it end?
Yes, the 2.x line still receives releases. The most recent 2.x release we can confirm is 2.20.26, dated 2 September 2026. Confirm the end-of-life date with Prefect in writing before you set a deadline for leaving 2.x, because a date that is not confirmed should not drive your schedule. Prefect's latest stable release is 3.9.6, dated 30 November 2026, so the target line is already available for planning and testing. Check the Prefect releases on GitHub page for release notes on each version you plan to pass through.
Do we need Prefect Cloud to upgrade a self-hosted Prefect server?
No. A self-hosted Prefect server can be upgraded without a Prefect Cloud subscription, and the work runs on your own infrastructure. Prefect Cloud is a separate licensing decision. Prefect's server documentation says Cloud provides RBAC, audit logs and SSO that the self-hosted server does not include, so those controls need their own review by procurement and compliance. Decide on them on their own timeline, and confirm with Prefect which features each Cloud plan includes before you put them in a budget. Air-gapped sites must self-host, so their upgrade plan rests entirely on your PostgreSQL, Redis and backup procedures. The Prefect server concepts page describes what the server includes.
How DeployOpen plans and runs a Prefect upgrade
DeployOpen plans a Prefect major version upgrade as a scoped change to a self-hosted system in your own infrastructure. We agree the target version, Python runtime, PostgreSQL database and deployments in writing first, then test flows against that target before changes reach production. Every step is documented so your platform team can review it and repeat it.
How we scope
- Confirm the current and target Prefect versions, plus the Python runtime, before any work starts.
- Inventory flows, deployments, work pools and workers, and any custom code that depends on Prefect internals.
- Record the scope, deliverables and timelines in writing before work starts.
How we build
- Stand up a staging copy of the server on the target version, with PostgreSQL, matching your production configuration.
- Run flows on the target version and check for breaking changes, such as key=value parameter formats in the CLI.
- Pin or update dependencies deliberately, including fastapi and redis if your environment pins them, and test the resulting build.
How we hand over
- Document the upgrade runbook, rollback steps, configuration changes and the test results for your platform team.
- Walk through the server, database and worker configuration so your team can repeat the upgrade in later cycles.
- Confirm access, backups and monitoring on the new version before the engagement closes, so ownership is clear.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers beyond the initial engagement.
- Ask whether a retainer covers the next Prefect minor and major releases, and how security patches are handled.
- Ask how the support window for each release line fits your own planning calendar before committing.

