https://prefect.io logo
Title
j

Jeffrey Lam

05/24/2022, 4:34 PM
Hi, if a task fails due to bad inputs from an upstream task, is there a way to modify the outputs of the upstream task before restarting the failed task? I'm using Prefect 1.2.1
k

Kevin Kho

05/24/2022, 4:35 PM
Super hacky and would not recommend but yes. I believe the restart loads from the
Result
so it would be a matter of editing that upstream Result and replacing the file before hitting restart
j

Jeffrey Lam

05/24/2022, 4:36 PM
thanks, if this is considered super hacky, what would be considered the recommended way?
k

Kevin Kho

05/24/2022, 4:37 PM
Re-running the flow and maybe using caching to prevent re-running of work?