I'm getting "Skipped (metadata unchanged)" upon re...
# ask-community
p
I'm getting "Skipped (metadata unchanged)" upon registering a flow that I've updated (as in, the source code has changed, and is being ignored.
prefect register --project proj_name -p /path/flow.py -n mesh_to_glb
z
Hey @Philip MacMenamin -- if the structure of the flow doesn't change, there is no change in the metadata that is sent to Cloud so it is 'skipped'
k
Hey @Philip MacMenamin, added to Michael’s comments, if you change the executor from LocalExecutor to DaskExecutor, that is not saved in the metadata also.
p
I'm running the flow on a server hosted by me (locally) - this is considered "Cloud" ?
k
For this purpose they would behave the same yep.
p
I'm addling logging.info within tasks, and I'm not seeing these logging events, the version remains at 1
this is expected behaviour?
well, actually more than that, I've changed functionality of the source. I guess I don't understand why this is considered to not have changed.
k
It’s about the change in
flow.serialized_hash
so if you add code to the task, it doesn’t affect the serialized hash because Prefect only stores the metadata , and not the actual code. You can force registration though with:
prefect register --force ...
p
ok -
Copy code
--force
did the trick -thanks!
👍 1