fblaze f
12/26/2020, 5:26 PMimport prefect
from prefect import task, Flow
@task
def say_hello():
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("Hello, Cloud!")
with Flow("hello-flow") as flow:
say_hello()
# Register the flow under the "tutorial" project
flow.register(project_name="tutorial")
flow.run()
Amanda Wee
12/26/2020, 7:01 PMfblaze f
12/26/2020, 7:37 PM