rami ben shalom

07/20/2022, 12:00 PM
Hey everyone, I'm having a bit of a problem, I'm using python logging library to export txt files with the run output for my function. Since I'm using cron scheduler I need to run the py file in windows task scheduler so the file always runs. Since it always runs the txt logging file still gets additional outputs since the flow never stops (I want txt file to represent a flow). I looked for quite a while for solutions to export the prefect flow output to separate txt for each run. I couldn't find the solution in the documentations, would very much appreciate the help! using prefect 1.0 - locally on windows server 2016 (using the prefect server is not an option currently).

Anna Geller

07/20/2022, 12:36 PM
to log to a file, check out this example from Kevin