Hello, in which cases do I need to redeploy my flo...
# ask-community
a
Hello, in which cases do I need to redeploy my flow on prefect? For example, if I have a task
Copy code
import app.logic
@task
def do_something():
     app.logic.dosomething()
If I am using a Local Agent and modify
Copy code
app.logic.dosomething()
without modifying the task or the general flow structure, would I still need to redeploy my flow?
a
@alex redeploying your flow, i.e. re-registerig your flow, is necessary as long as anything in your metadata has changed. What counts as metadata is: 1. your flow structure (tasks and edges) 2. your storage and run config 3. your flow name, project name 4. the Prefect Core version 5. and your serialized flow Especially because of #5 the answer to whether you need to reregister depends on whether you use a pickle or script based storage. A detailed description of flow metadata can be found here: https://docs.prefect.io/api/latest/backend/flow.html#flowview