Should `prefect register -p my_flow.py` be updatin...
# ask-community
d
Should
prefect register -p my_flow.py
be updating the version of the Flow? I have changed the code and ran
register
again, multiple changes and multiple registers, but the VERSION is still
1
in
prefect get flows
hmmm.. if I add the force flag
-f
I do get a version 2. But why would I need the force flag?
z
Hey @Dan Stoner, Prefect only updates the flow version if the flow metadata has changed (because that's all Prefect knows about). If you change, for example, some code in a
task
, Prefect doesn't know about it and therefore won't update the flow version
upvote 1
d