, all my new or modified flows get registered fine. On the other side, some flows I've deleted are still registered on my server. Is there a way of syncing these?
a
Anna Geller
11/18/2021, 1:54 PM
@Gabriel Milan
1. How did you delete the flows? Could it be that you deleted only flow runs, but not the underlying flows?
2. How do you register? using flow.run(), using prefect register CLI or in some other way?
g
Gabriel Milan
11/18/2021, 1:57 PM
1. I'm deleting the actual code for the flow
2. I'm registering using the CLI:
if you only delete the flow code from the pipelines_dir, it will have the effect that those deleted flows won’t be reregistered, but if they have already been registered in the past and haven’t been deleted, they will persist. You would need to explicitly delete those flows using a GraphQL mutation, or if all those flows are in a specific project, you can delete the entire project and this will also delete the flows from that project
g
Gabriel Milan
11/18/2021, 2:01 PM
even if I build JSON or something, it won't be able to tell that I've deleted the flow?
a
Anna Geller
11/18/2021, 2:06 PM
afaik, as long as a flow has been registered, you would need to explicitly delete it if you want this flow to be deleted. There is no “prefect unregister” command currently.
Even an “old” no longer used flow can provide useful metadata and flow history for debugging various data issues so this behavior makes sense in most cases. But I understand that unregister could be useful.
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.