Infrastructure & Operations · Orchestration & Scheduling
Prefect
Python orchestration for durable, observable data workflows
Prefect is an Apache-2.0 workflow orchestration framework for Python teams building data, machine learning, and agent workflows. It runs with self-hosted Server or Prefect Cloud, whose plans range from free Hobby access to custom Enterprise pricing. The project remains active, with version 3.9.0 released on October 21, 2026.
Key facts
- License
- Apache-2.0
- Main language
- Python, TypeScript, Vue
- Maintainer
- Prefect
- First released
- 2019
- Latest release
- v3.9.0, October 21, 2026
- GitHub stars
- 24k, October 2026
- Hosted option
- Prefect Cloud from $0 per month
What Prefect is
Prefect began as a workflow tool for data engineers and data scientists, with its repository created in 2018 and its open-source launch recorded in version 0.5.0 on March 24, 2019. The launch placed Prefect Core under the Apache 2.0 license after the project had developed from lessons in data workflow use cases. The repository currently describes Prefect as a Python framework for resilient data pipelines and reports more than 24,000 stars. Its README says Prefect Cloud automates more than 200 million data tasks monthly and identifies Progressive Insurance and Cash App among users. These details show adoption across individual practitioners, data teams, and larger organizations, while the framework remains available for local or privately managed operation.
How it works
Prefect turns ordinary Python functions into flows and tasks, then adds scheduling, retries, caching, dependencies, event automations, logging, and run monitoring. A common workflow uses flow and task decorators, executes locally or through a deployment, and sends work to infrastructure selected by the team. Deployments can run from cron schedules, manual commands, webhooks, or events. Flows can branch, loop, and create tasks according to runtime values, which suits pipelines whose shape is not fixed in advance. Prefect Server and Prefect Cloud track flow activity, states, logs, and artifacts. Operators can inspect runs through the dashboard, retry failed work, and connect existing services through integrations. This approach keeps orchestration code near the Python functions that perform the underlying data work.
Architecture and recent releases
The project is primarily implemented in Python, with TypeScript and Vue also represented in the repository. Prefect supports a self-hosted Server and a managed Prefect Cloud control plane, while workers can execute code in infrastructure selected by operators. The current installation requires Python 3.11 or newer. Version 3.9.0 was released on October 21, 2026, removed Python 3.10 support, added Python 3.15 support, reduced CPU use for event and API log delivery, and added recovery for cancellation and suspension observers after WebSocket outages. Version 3.8.8 was the final release supporting Python 3.10. Repository documentation and release notes also cover Kubernetes, Redis, dbt, Ray, ECS, Snowflake, and related integrations used around workflow execution.
License and pricing
The Prefect framework uses Apache-2.0, allowing commercial use, modification, distribution, and deployment subject to its license conditions. Prefect Cloud is a separate managed service with its own pricing. The Hobby plan is free and includes two users, five deployments, 500 minutes of Prefect Serverless compute, five automations, and seven days of run retention. Starter costs $100 per month, while Team costs $100 per user per month; Enterprise pricing is custom. Paid plans add deployment capacity, Serverless credits, custom work pools, service accounts, audit retention, governance, and enterprise security features. Self-hosting avoids Cloud subscription charges, while Cloud handles the hosted control plane and can run workflows on managed or customer-configured compute.
Limitations and how it compares
Prefect requires an operational choice between managing Server and purchasing a hosted control plane, while advanced Cloud governance is reserved for Enterprise. The current Python requirement can also complicate older runtime environments because Python 3.10 ends with version 3.8.8. Apache Airflow is a reasonable alternative for teams centered on established DAG conventions and its operator collection. Dagster offers another Python-first model with asset-oriented workflows, while Temporal focuses on durable application workflows beyond data pipelines. Prefect is intended for Python data, machine learning, and agent teams that want dynamic execution, built-in retries, a self-hosted path, and an optional managed dashboard without changing their primary application language.
Main features
- Python flows. Decorators turn ordinary Python functions into flows and tasks without requiring a separate workflow definition language.
- Retries and caching. Tasks and flows support retries, caching, error handling, and state tracking for recurring data operations.
- Dynamic workflows. Flows can branch, loop, and create tasks at runtime instead of requiring a fixed graph before execution.
- Scheduling and events. Deployments can run on schedules, manual commands, webhooks, or event-based automations as part of the documented application workflow.
- Run observability. Server and Cloud dashboards display flow runs, logs, artifacts, states, and activity for operational review.
- Work pools. Work pools connect deployments to infrastructure configured by the team, including Kubernetes and other execution environments.
- Managed Cloud. Prefect Cloud adds hosted orchestration, Serverless compute, collaboration, service accounts, and governance controls as part of the documented application workflow.
Self-hosting Prefect
Prefect can be installed with pip or uv, and the project publishes an official Docker image for running Server in a container. The documented container command forwards port 4200, starts the server with its host set to 0.0.0.0, and requires clients to use PREFECT_API_URL that points to the containerized service. The local quickstart runs prefect server start and opens the dashboard at localhost:4200. The documented Docker guide does not specify minimum CPU, memory, database, backup, authentication, or production availability requirements. Operators therefore need to design persistence, upgrades, backups, access controls, and worker deployment around their chosen infrastructure.
Strengths
- Apache-2.0 permits commercial use, modification, and redistribution.
- Python decorators keep flow definitions close to ordinary application code.
- Self-hosted Server and managed Cloud support different operational preferences.
- The latest release supports Python 3.15 and improves event handling.
Drawbacks
- Python 3.11 or newer is required after the 3.8.8 release.
- Cloud governance features and higher limits require paid plans.
- The documented Docker setup does not define production hardware requirements.
What teams replace with it
Teams usually evaluate Prefect when they want to move off Apache Airflow, Dagster Cloud, Control-M.
For side-by-side commercial comparisons, browse our alternatives hub.
Frequently asked questions
Is Prefect free?
The Prefect framework is free under Apache-2.0, and Prefect Server can be self-hosted. Prefect Cloud has a free Hobby plan with two users, five deployments, 500 minutes of Serverless compute, five automations, and seven days of run retention. Paid Cloud plans begin at $100 per month for Starter and $100 per user per month for Team.
Can companies use Prefect commercially?
Yes. The framework uses Apache-2.0, which permits commercial use, modification, and redistribution subject to license conditions. Prefect Cloud is a commercial hosted service with free and paid plans. Teams can run the framework with their own infrastructure or pay for hosted orchestration, Serverless compute, collaboration, governance, and enterprise security controls.
How do you self-host Prefect?
Install the Python package with pip or uv, then run prefect server start for a local server. The documented Docker method uses the official Prefect image, publishes port 4200, binds the server to 0.0.0.0, and points clients at the containerized service. The project documentation does not specify minimum hardware or a complete production backup design.
How does Prefect compare with Airflow?
Prefect describes workflows as plain Python functions that can branch, loop, and create tasks at runtime, while Airflow commonly uses DAG definitions. Prefect also includes retries, state handling, and recovery in its engine. Airflow remains suitable for teams centered on its established DAG model and operator collection, while Prefect suits Python code with dynamic execution requirements.
Can Prefect keep workflow code inside a private network?
Yes. Prefect supports self-hosted Server, and its Cloud model can use workers inside the customer environment while the control plane handles scheduling and visibility. The Cloud pricing page lists Enterprise features including SSO, RBAC, SCIM, IP allowlisting, PrivateLink, and custom retention. Exact security configuration depends on the selected deployment and plan.
Similar projects to compare
- KestraApache-2.0Kestra is an Apache-2.0 workflow orchestration platform for scheduled and event-driven data, AI, infrastructure, and business automation. It uses YAML flows, a visual editor, language-agnostic tasks, and a large plugin catalog. The open-source edition is free to run yourself; Kestra Cloud and Enterprise Edition are commercial offerings priced through usage or sales contact.
- TemporalMITTemporal is an open-source durable execution platform for long-running, failure-sensitive applications. Its server and core features use the MIT license, while Temporal Cloud provides hosted operation from $50 per million actions, with $150 in credits for 90 days and paid business plans. Teams can also deploy the server themselves.
- 1PanelGPL-3.01Panel is an open-source Linux server management panel for administrators running websites, databases, containers, virtual machines, and AI services. Fit2Cloud maintains the project through 1Panel-dev under GPL-3.0. The OSS edition is free forever. There is no official hosted control-plane service, while Pro costs $80 yearly or $200 for a perpetual V2 license.
- BacalhauApache-2.0Bacalhau is an open source distributed compute orchestration framework for running Docker and WebAssembly workloads near data across edge, on premises, and cloud environments. It uses an Apache-2.0 license, offers a free public demo network, and has separate commercial support from Expanso. Its latest observed release is v1.9.5, dated October 12, 2026.
- DaguGPL-3.0Dagu is a self-hosted workflow engine for teams turning scripts, cron jobs, containers, and runbooks into observable YAML workflows. Its GPLv3 community edition is free, while paid self-host licenses add SSO, RBAC, audit logs, and incident routing. Dagu Console offers optional hosted monitoring, while workflow execution remains on infrastructure the operator controls.
- HatchetMITHatchet is an MIT licensed orchestration engine for background tasks, AI agents, queues, and durable workflows. It supports Python, TypeScript, Go, and Ruby applications, with self hosting and Hatchet Cloud. Cloud includes one million monthly runs and events, then charges $30 per million runs and $5 per million events.