https://prefect.io logo
Title
j

Javier Ochoa

08/05/2022, 7:39 PM
Hello, I have a problem, I am using prefect with python and cloud environment. when I try to register workflows to Prefect Cloud with AWS s3 method, they are "registered" but in prefect, the version does not change (it keeps the version at 1 even when I registered 3 times): This is causing issues with code sync, meaning that the agent has the newest code, but the flow runs a different version or something
flow.storage = S3(
   bucket=DEPLOYMENT_BUCKET, stored_as_script=False, add_default_labels=False
)
flow.register(
   PROJECT_NAME,
   add_default_labels=False,
   idempotency_key=flow.serialized_hash(),
)
1
j

Javier Ochoa

08/05/2022, 7:56 PM
wow great, thanks for that. That is what I am looking for
🙌 1