Mark Williams
03/12/2020, 9:30 PMChris White
03/13/2020, 1:22 AMflow.visualize()
? If so, there is not much you can do to customize this currently.
2. You’ll need to use some custom logic to split flow.visualize
out into multiple files. Most of our users use flow.visualize
as a sanity check, and rely on our UI’s visualization features during execution (e.g., https://docs.prefect.io/cloud/ui/flow-run.html#schematic)
3. Result handlers are the interface to configure how task outputs are handled. For writing logs to a file, you can attach a FileHandler
to the prefect logger (https://docs.python.org/3/library/logging.handlers.html#filehandler) as follows:
import prefect
from logging import FileHandler
file_handler = FileHandler(filename="logs.txt")
root_prefect_logger = prefect.utilities.logging.get_logger()
root_prefect_logger.addHandler(file_handler)
Mark Williams
03/13/2020, 1:28 AMChris White
03/13/2020, 1:31 AMchris @ <http://prefect.io|prefect.io>
and kyle @ <http://prefect.io|prefect.io>