🗓️Prefect
Also known as Prefect Flow, Prefect Cloud
A Python tool to run pipelines. Plain functions become flows that are tracked and retried.
Think of it like
It is like putting stickers on your homework. Each sticker makes a page a step that gets checked.
Example
Emma already has a Python script that pulls prices. She adds two decorators, and it now runs every hour with retries and a log page.
Why it matters
It asks for few changes to code you already have. That makes it a quick way to add retries and tracking to scripts.
Definition
Example code
python
from prefect import flow, task
@task(retries=3, retry_delay_seconds=60)
def fetch_orders():
...
@flow
def nightly_load():
orders = fetch_orders()Common mistake
Key takeaways
- 1Plain Python. Decorators on normal functions.
- 2Dynamic flows. Branches and loops are allowed.
- 3Tracked runs. Logs, retries and state for each step.