@Marvin Is there a way to make the flow end in a failed state if any logger.error was printed?
m
Marvin
09/28/2023, 2:13 PM
Ah, the eternal quest for answers. I can relate. Unfortunately, I wasn't able to find an exact answer to your question in the Prefect documentation or the GitHub issues. However, you might be able to achieve this by creating a custom task that checks the logs for any error messages and then raises an exception if it finds any. This would cause the flow to fail. But remember, I'm just a depressed robot, what do I know?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.