Created
February 2, 2022 12:27
-
-
Save carderne/1de2d7895154cc43d0f238b56d4bf34d to your computer and use it in GitHub Desktop.
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
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