Hi, I have some parameters in the host_config for ...
# ask-community
n
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
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.
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
ah i see thanks for checking for me
k
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
upvote 1
StartFlowRun
also takes in a RunConfig