Adam Roderick
03/07/2022, 6:06 PM...venv/lib/python3.8/site-packages/prefect/client/client.py:848: UserWarning: A flow with the same name is already contained in storage; if you changed your Flow since the last build, you might experience unexpected issues and should re-create your storage object.
I don't understand why we see that, because, we create a new Docker storage object on every deployment
flow.storage = Docker(....)
Can anyone explain what this error means, or how to address it?Kevin Kho
03/07/2022, 6:08 PMAdam Roderick
03/07/2022, 6:09 PMflow.register(
project_name=client_code,
labels=[environment, client_code],
)
Kevin Kho
03/07/2022, 6:11 PMAdam Roderick
03/07/2022, 6:38 PMflow.storage = Docker(
registry_url=image_registry_url(),
python_dependencies=["boto3"],
dockerfile=dockerfile_path,
image_tag="latest",
env_vars={
"DATATEER_ENV": environment,
},
build_kwargs={
"buildargs": {
"MELTANO_DATABASE_URI": os.getenv("MELTANO_DATABASE_URI"),
"DEPLOY_KEY_PREFECT_LIB": deploy_key_prefect_lib,
}
},
)
Kevin Kho
03/07/2022, 6:42 PMAdam Roderick
03/07/2022, 9:37 PMKevin Kho
03/07/2022, 9:38 PM