Created
December 22, 2021 17:54
-
-
Save ChengzhiZhao/b99fbb8b4868916e05d50e41aee43c16 to your computer and use it in GitHub Desktop.
Hello World Example for Perfect
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
import prefect | |
from prefect import task, Flow | |
@task | |
def hello_task(): | |
logger = prefect.context.get("logger") | |
logger.info("Hello world!") | |
with Flow("hello-flow") as flow: | |
hello_task() | |
flow.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment