Hi, I am having a problem with prefect UI. Sometim...
# ask-community
t
Hi, I am having a problem with prefect UI. Sometime the I change flow and register it or change flow label from UI. But the Metadata is not modified. I have to delete the flow and then register with a different name to make it work. I want to mention again, it is happening with some flows. Not a regular occurring. Also, if i delete the flow, it is kept in the archieve, if I register flow with same name the re-register does not work. I think metadata from archieved flows is messing up with the new flow Meta-data. Is there a way to delete flow from archieve. (permantly delete it from the database) @Kevin Kho posted in new Thread. Please refer it to your team.
n
Hi @Talha - when you're modifying metadata in the UI, you're modifying the flow group metadata and not the flow itself. The reason for this is that we don't have access to your code and so rather than create a discrepancy between your flow code and the metadata in the database we use a catch-all object for all versions of the flow. This also allows us to persist changes between registrations, meaning if you modify a label on the flow group, re-registering the flow won't unexpectedly remove that label. When you say you're deleting the flow but it's not deleted, can you be more specific as to how you're deleting it? Similarly can you share some info on what's happening when you attempt to register a flow with the same name?
t
I am deleting the flow using UI, and when I say the flow is not deleted I mean that it goes to achieve but removed from current flow list. The problem is that when I register the same flow with same name after deletion, The meta-data of old is still there (that's my guess). What I observed that my flow (let say FLOW A) was not running on agent A. Giving me error (file not found for execution). But when I register the same flow with a different name (Say Flow A1) it works. Nothing changed in code. But if I delete the Flow A and register again with same name. It still not work with the Agent A. Somehow the meta-data is not updated or so.
n
Hi @Talha are you running Predect Server or Prefect Cloud?
t
prefect server