Howdy, y'all!
It appears that when a flow has a new version registered, any flows scheduled to run are cancelled.
This occasionally breaks one of our larger flows (Prefect 1.0, we run many flows from one big flow) when our flow schedules another flow, but that flow hasn't started yet. Would there be a way to workaround this?
g
George Coyne
10/17/2023, 8:31 PM
Hey Jeffrey! You are testing my memory here, but maybe try with setting an idempotency key in the register method
`idempotency_key (str, optional)`: a key that, if matching the most recent registration call for this flow group, will prevent the creation of another flow version and return the existing flow id instead.
George Coyne
10/17/2023, 8:32 PM
I'm not positive that will have the desired effect but as it causes the flow_id to remain the same it may also persist scheduled flow runs
j
Jeffrey Harrison
10/17/2023, 9:55 PM
Thanks! Upon further inspection -- we did do this, but it was broken.
Jeffrey Harrison
10/18/2023, 5:22 PM
If anyone else has any thoughts here, I think we'd like to guarantee it never happens. Best idea I have is to block off a time to register flows.