<@ULVA73B9P> In prefect 3, i have a flow containin...
# ask-marvin
t
@Marvin In prefect 3, i have a flow containing some tasks. When a task in the middle of a flow fail, will i get notification? And can i rerun that task to resume the flow from that task? Or can I skip the failed task and resume the flow after task?
m
In Prefect 3, you have the capability to set up notifications for when a task within a flow fails. You can achieve this using state change hooks, which allow you to send notifications or perform actions when tasks transition between states, such as entering a failed state. For more information, you can read the Prefect 3 documentation about managing task and flow states: Prefect 3.x - Manage States. Regarding rerunning a failed task to resume the flow from that task or skipping the failed task to continue the flow, those are common requirements. Prefect typically provides ways to manage task retries and skip failures. However, specific documentation or issues detailing these features were not found in the searches. This implies that you might need to implement custom retry logic or flow modifications depending on your specific use case. If you need precise control over rerunning tasks or skipping them, reviewing the Prefect 3 documentation about task orchestration for proper handling might be a good next step, or you can reach out to the Prefect community for more detailed guidance based on your exact flow logic requirements.