Is there a graphql mutation to change the location of a flow?
k
Kevin Kho
11/29/2021, 3:08 PM
Hey @Brian Phillips, not specifically, it would be the same mutation as registering a flow. If you wanted to do it purely in GraphQL, you would query for the Flow, change it, and then re-register.
b
Brian Phillips
11/29/2021, 3:09 PM
Hey @Kevin Kho thanks for the reply. Is it possible to re-register a flow with the same version?
k
Kevin Kho
11/29/2021, 3:10 PM
Not in current Prefect, but versions are user-supplied in Orion (Prefect 2.0) so you can give something like a git hash
b
Brian Phillips
11/29/2021, 3:10 PM
Got it, thank you
a
Anna Geller
11/29/2021, 3:21 PM
@Brian Phillips just to add: if you use “prefect register” CLI and your metadata hasn’t changed but some code inside of a task has changed, then reregistering will result in the same flow version, even though the flow code gets updated in the storage.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.