Hello all, how can i deploy the same flow for sevral projects with some different predefined variables (not in input)? thx
k
Kevin Kho
09/30/2021, 2:02 PM
Hey @Qin XIA, so the issue with Prefect right now is that you can only have one version of a Flow at a time. This will be changing soon where you can have multiple versions of a flow with different configurations.
This is a bit tricky programatically. Getting it to different projects is easy, you can just loop and call
flow.register()
. The parameters is the harder part. You might need to use the
Client
and hit the
GraphQL API
to
set_flow_group_parameters
, which takes in a flow group id and a JSON of the parameters.
q
Qin XIA
09/30/2021, 2:05 PM
@Kevin Kho thx for your response, hope the new version coming soon👀
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.