https://prefect.io logo
p

Pedro Machado

02/18/2022, 4:00 PM
Hi there. Could someone help me understand why a flow (using Docker storage) is registered with a new version every time I run
prefect register
even though the code has not changed? The only thing I see that could change is the Docker tag which I am not setting explicitly. Would this cause it to increment the version number? Docker build log in thread.
Untitled.txt
k

Kevin Kho

02/18/2022, 4:08 PM
This happens most frequently when you have something like a parameter with
datetime.datetime.now()
or schedule that gets evaluated differently and changes the metadata
p

Pedro Machado

02/18/2022, 6:28 PM
I found the reason. It was the lack of a stable
image_tag
on Docker storage. I was using the default tag. What are some best practices around setting a stable tag?
4 Views