Another question, is it possible to have an alread...
# prefect-community
m
Another question, is it possible to have an already-running Flow Run update when the flow itself gets updated? Suppose a task is added, or modified, or removed? Or to cancel a Flow Run and then have it restart from cancelled, but the new run would include the recent updates to the flow?
discourse 1
k
I don’t think so unless it’s a subflow. The current flow will already be deployed and that Python code is fixed. The cancelling and restart from cancelled will be doable in Orion, just not in current Prefect.
The best thing you can do at the moment is use something like caching and then restart a new flow run so you don’t have to run the previous tasks again as they will be cached
m
Thanks for the tip about caching. Huh -- how do I know if I am using Orion? In my Prefect Flow cloud console, I do see a "Restart run from Cancelling" button after I cancel a flow. But I thought I was just using Prefect 1.0, maybe I am mistaken?
k
You are likely not using Orion haha. Prefect 2.0 has different syntax. You can see the basic Flow here . I mean restarting from cancellation can be done but not when you re-register the Flow because the old “version” becomes archived and you can’t mix versions for Flow Runs
m
I see I see. Yeah that makes sense, when I press "restart" after cancelling I don't see the new task that I added. Thanks for the quick response!
k
Of course!