Skip to content

Tutorial Overview

This tutorial provides a step by step walk-through of Prefect core concepts and instructions on how to use them.

By the end of this tutorial you will have:

  1. Created a Flow
  2. Added Tasks to It
  3. Created a Work Pool
  4. Started a Worker
  5. Deployed and run the Flow

If you're looking for examples of more advanced operations (like deploying on Kubernetes), check out Prefect's guides.


  1. Before you start, make sure you have Python installed, then install Prefect: pip install -U prefect

    1. See the install guide for more detailed instructions.
  2. Create a GitHub repository for your tutorial, let's call it prefect-tutorial.

  3. This tutorial requires a Prefect Server instance, so sign up for a forever free Prefect Cloud Account or, alternatively, self-host a Prefect Server.

What is Prefect?

Prefect orchestrates workflows — it simplifies the creation, scheduling, and monitoring of complex data pipelines. With Prefect, you define workflows as Python code and let it handle the rest.

Prefect also provides error handling, retry mechanisms, and a user-friendly dashboard for monitoring. It's the easiest way to transform any Python function into a unit of work that can be observed and orchestrated.

Just bring your Python code, sprinkle in a few decorators, and go!

Next: Flows

Get started with learning how to create your first Prefect Flow.