Skip to content

Instantly share code, notes, and snippets.

@samz5320
Last active August 17, 2022 15:35
Simple_task_registration_prefect
#imports
import prefect
from prefect import task, Flow
#deinfe tasks
@task
def hello():
print("Hello World!")
#initialize tasks
with Flow("hello") as flow:
hello()
#register flow
flow.register(project_name="test")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment