Nicholas Chammas
04/01/2021, 5:17 PMidempotency_key=flow.serialized_hash()
the default?
https://docs.prefect.io/orchestration/concepts/flows.html#core-client
I can’t think of why someone would want the Flow version to change if the Flow definition hasn’t.Jim Crist-Harif
04/01/2021, 5:18 PMprefect register
cli it is the default (since this was a new CLI method, there was no backwards compatibility to break).Nicholas Chammas
04/01/2021, 5:29 PMprefect register
create a new version every time. And I don’t see how to configure the CLI’s behavior in this regard. Did I miss something?Jim Crist-Harif
04/01/2021, 5:31 PMNicholas Chammas
04/01/2021, 5:31 PMNicholas Chammas
04/01/2021, 5:51 PMprefect register --project "my project" --path path/to/flow.py
multiple times, are multiple versions expected to be created? Maybe prefect register
only avoids creating new versions when it’s running via --watch
?Jim Crist-Harif
04/01/2021, 5:54 PMJim Crist-Harif
04/01/2021, 5:55 PMNicholas Chammas
04/01/2021, 5:57 PMNicholas Chammas
04/01/2021, 10:12 PMprefect register
still creates a new version every time I run it.
Here’s the boiled down flow definition:
with Flow(
"some-test",
run_config=UniversalRun(labels=["my-company"]),
storage=S3(bucket="some-bucket"),
) as flow:
pass
And I’m running:
prefect register --project "my-project" --path path/to/myflow.py
And yet every time I run it I get a new Flow version.
Is there anything I should try before I report this on the issue tracker?Jim Crist-Harif
04/01/2021, 10:13 PMJim Crist-Harif
04/01/2021, 10:14 PMstorage=S3(bucket="some-bucket", key="some-key")
Nicholas Chammas
04/01/2021, 10:14 PMNicholas Chammas
04/01/2021, 10:14 PMJim Crist-Harif
04/01/2021, 10:14 PMJim Crist-Harif
04/01/2021, 10:15 PMNicholas Chammas
04/01/2021, 10:16 PMNicholas Chammas
04/01/2021, 11:07 PMIf this key is not provided the Flow upload name will take the formto this?.slugified-flow-name/slugified-current-timestamp
If this key is not provided the Flow upload name will take the formOr would that be a backwards-incompatible change?.slugified-flow-name/serialized-flow-hash
Jim Crist-Harif
04/01/2021, 11:16 PMJim Crist-Harif
04/01/2021, 11:17 PMMarvin
04/01/2021, 11:17 PMMarko Jamedzija
04/06/2021, 7:10 AMAzure
being used as storage (providing container
parameter and using AZURE_STORAGE_CONNECTION_STRING
env). Is there a similar option here (as I don’t see key
as one of the Azure
parameters here) or I have to use idempotency_key
every time while registering (which I already am doing but bored to have to change it for every flow change)? Using flow.serialized_hash
looks like a good solution for me, but have to try it out 🙂 Thanks!