Prefect is a Python framework for orchestrating data pipelines with scheduling, retries, caching, and event-driven automations. Activity can be watched in a self-hosted server UI or Prefect Cloud.
Overview
Prefect helps teams turn Python scripts into production workflows by decorating functions as flows and tasks. Pipelines can react to changing conditions and recover when steps fail unexpectedly.
Core capabilities named in the documentation include scheduling, result caching, automatic retries, and automations triggered by events. Flows can express dependencies, branching, and retry behavior without bolting that logic onto ad hoc scripts.
Runs can be scheduled through deployments, started from a dashboard or command line, or kicked off in response to events. A locally run server exposes a UI for inspecting what each run did, and the same monitoring model is available through managed Prefect Cloud.
Installation targets Python 3.11 and newer. Agent setup guides describe connecting assistants through plugins or MCP and using the CLI alongside the Python SDK. A separate prefect-client package is offered for lighter client access to a remote server or cloud.
For durable execution, decorators and settings can persist task results so a retried run skips work that already finished, pause for human approval, and configure retries on flows and tasks.
Key features
- Flow and task decorators
- Scheduling and deployments
- Retries and caching
- Event-based automations
- Run monitoring UI
- CLI and agent integrations
- Human-in-the-loop pauses
- prefect-client for remote APIs
Use cases
- Production Python data pipelines
- Scheduled workflow runs
- Event-triggered automation
- Observed team data processes
- Agent-connected orchestration