THE HYBRID MODEL
Design and test your workflow with our open-source Prefect Core
Send metadata (but never code!) to Prefect Cloud in order to
register your flow for execution.
Run an open-source Prefect Agent on your infrastructure. The Agent
monitors Cloud for scheduled work.
Use Prefect Cloud to schedule a new run of your flow.
The Agent runs the flow on your infrastructure and sends state
updates back to Cloud.
Use the Cloud UI to monitor all of your flow runs, no matter where
or how often they run.
from prefect import task, Flow
with Flow("My First Flow") as flow:
flow.run() # "Hello, world!"