prefect-recipes icon indicating copy to clipboard operation
prefect-recipes copied to clipboard

Snippets and templates representing common Customer Success patterns

Prefect Recipes ๐Ÿง‘โ€๐Ÿณ ๐Ÿฅ

This repository contains common and extensible Prefect patterns to drive efficient workflows โ€” we like to call these patterns our recipes

Here you'll find starter code and more advanced example use cases.

Contributing = Swag ๐Ÿงข

We're always looking for new contributions! See our existing Recipe Ideas/Issues for inspiration. Read a detailed guide on how to share your solutions with the Prefect community or run these commands to get started right away.

Issues / Bugs ๐Ÿ›

To report issues, typos, or link fixes, please open an issue. We appreciate it!

Recipe Ideas ๐Ÿ‘ฉโ€๐Ÿณ

What are you interested in seeing examples of? Jot down your big idea here.

Table of Contents ๐Ÿ“–

  • Getting Started

    • Introductory Videos
    • Subflows
    • Control Flow
    • Optimization
    • Notifications
    • Flow Run Observability
    • Configuration (Using Blocks
    • Parameters
    • Testing
    • Triggering Flow Runs
  • Diving Deeper

    • Streaming & Event-Driven Workflows
    • Serverless
    • Data Engineering / DataOps
    • ELT/ETL
    • AWS Infrastructure
    • Azure Infrastructure
    • Helm
    • Kubernetes
    • GitHub Actions
    • Dockerfiles
    • Django
    • Pydantic
    • Hex
    • Data Science
    • Modular Data Stack
    • Miscellaneous
  • Issues & Bugs

  • Contributions

  • Join the Discussion

  • Thanks

Getting Started ๐Ÿฏ

Introduction

Subflows

Control Flow

Optimization

Notifications

Flow Run Observability

Configuration (using Blocks)

Parameters

Testing

Logging

Triggering Flow Runs

Diving Deeper ๐Ÿฑ

Data Engineering / DataOps

ELT/ETL

AWS Infrastructure

Azure Infrastructure

GCP Infrastructure

  • Setup GCP Managed Instance Group with Prefect

Helm

  • Deploy Prefect Agent using Helm and Terraform

Github Actions

  • Conditionally deploy Prefect flow(s) only when flow-related files have changed
  • Conditionally build a docker image & deploy Prefect flow(s) only when flow-related files have changed
  • Deploy Prefect flows as containers stored in AWS ECR

Django

Pydantic

Hex

Data Science

Modular Data Stack

Miscellaneous

  • Merge Dependabot Pull Requests with Prefect 2 & a GitHubCredentials block

Contributions

We're always looking for new contributions! You can add your Prefect 2.0 recipe and earn some swag in a few simple steps:

  1. Clone the prefect-recipes repo:
git clone [email protected]:PrefectHQ/prefect-recipes.git
  1. Create and checkout a new branch:
git checkout -b feat/new-recipe-name
  1. Add your code under the appropriate category. Unsure? Add it under flows-advanced/.
  2. Add your recipe to this README.
  3. Commit and push the code to your remote branch.
  4. Create a PR ๐ŸคŒ

Join our discussions ๐Ÿ—ฃ๏ธ

We use our Slack Community and Discourse to discuss all things Prefect-- such as FAQ, use cases and integrations. Join in the conversation :smile:

Thanks ๐Ÿ’™

Thank you for your contributions and efforts to improve prefect-recipes. We're glad to have you in our community!