DK
06/04/2021, 1:49 AMKevin Kho
Ranu Goldan
06/04/2021, 3:18 AMprefect register flow
it doesn't bump version, but with prefect register
it doesKevin Kho
Amanda Wee
06/04/2021, 3:56 AMserialized_hash()
the flow versions kept increasing even if it was just because the ECS task was restarted, thereby starting up the Docker container again.
My suspicion was that some Docker container metadata was changing each time, e.g., something host-related, so the serialized hash computation changed. My solution was to write my own hash function that took into account the dependencies (including Prefect version) and the code content, but I wonder if that is overkill.Kevin Kho
Amanda Wee
06/04/2021, 5:00 AMKevin Kho
DK
06/04/2021, 2:41 PMprefect register --project Project1 -p src/register.py -n Flow1
it will register the flow, then if I run the same command a few seconds later, it will skip with the message: "Skipped (metadata unchanged)". However, running it a third time, it will register the flow as version 2. So it seems to be skipping the registration as desired every other time.nicholas
nicholas
Marvin
06/04/2021, 2:49 PMDK
06/04/2021, 4:33 PMnicholas