Skip to content

Instantly share code, notes, and snippets.

@carderne
Created February 2, 2022 12:27
Show Gist options
  • Save carderne/1de2d7895154cc43d0f238b56d4bf34d to your computer and use it in GitHub Desktop.
Save carderne/1de2d7895154cc43d0f238b56d4bf34d to your computer and use it in GitHub Desktop.
from prefect import Flow, task
from loguru import logger
def fn1():
print("Hello from fn1")
def fn2():
logger.info("Hello from fn2")
@task(log_stdout=True)
def task():
print("Hello from task")
fn1()
fn2()
with Flow("test") as flow:
_ = task()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment