Richard Alexander
02/08/2023, 4:05 PMfrom prefect import flow, get_run_logger
@flow()
async def my_flow():
logger = get_run_logger()
# Start async process and pass logger
Will the logger also be async?
As a bit of background, we have an async process that spawns multiple other async processes and will create a good deal of logging that we need to catch with the prefect logger. We want to make sure that the logging won't cause any blocking issues. Is passing a logger in this way a safe way to go about it for async code?Zanie
02/09/2023, 12:50 AMRichard Alexander
02/09/2023, 2:50 PM