Last active
August 17, 2022 15:35
-
-
Save samz5320/5bf4a4d353af6b6e5d5e4eded975fba3 to your computer and use it in GitHub Desktop.
Simple_task_registration_prefect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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