Skip to content

Incremental Flow registration #3357

Answered by cicdw
gatesn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gatesn - this is a great question; fundamentally, you only need to re-register whenever flow.serialize() changes, so if you had a way of tracking that value you could run a manual check. We might consider exposing a built-in mechanism for this, but I'd want to think through the details to make sure it's used correctly.

One thought that comes to mind is to expose an idempotency_key in the GraphQL API for register Flows - flow.register could then use some deterministic hash of flow.serialize() as an idempotency key under-the-hood, and then you could safely call flow.register as many times as you want and Prefect would make sure new versions only get registered when they're necessary.

I'…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gatesn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants