Hi,
I have some parameters in the host_config for DockerRun that are in the child flows that I want to be able to edit/set when I go to run the parent flow. Is this currently possible in Prefect?
• Is there a way for me to be able to define/set the host_config for the child process in the parent process?
k
Kevin Kho
10/12/2021, 5:42 PM
That does not sound possible because
host_config
has to be registered and attached to the
DockerRun
right? This means it’s registered already. I will ask though to confirm.
Kevin Kho
10/12/2021, 5:43 PM
Parameters would only be able to edit Flow behavior but not RunConfig behavior. You might be able to do something using the GraphQL API like querying to the flow, editing the RunConfig, and kicking off that flow run. Will check
n
Nick Hart
10/12/2021, 5:49 PM
ah i see thanks for checking for me
k
Kevin Kho
10/12/2021, 6:21 PM
You can use the
create_flow_run
task and it takes in an Optional RunConfig so you can edit the host config that way. This creates a new flow run and overrides the RunConfig
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.