Hi, wanna ask what is the best way to call the sub...
# prefect-cloud
a
Hi, wanna ask what is the best way to call the subflow. right now I am using something like below:
Copy code
parallel_subflows = [
    subflow1(ref_id),
    subflow2(ref_id)
]
await asyncio.gather(*parallel_subflows)

but I can't control the random generated flow run name in this way. How can I configure the flow run parameter of the subflow?
m
I think you should be able to use the with_options method for a flow to do this https://docs.prefect.io/api-ref/prefect/flows/?h=with_options#prefect.flows.Flow.with_options
a
Great, looks good now. thanks