Question about Run Configuration for Flow. What i...
# prefect-community
a
Question about Run Configuration for Flow. What is a meaning behind specifying LocalRun/DockerRun/.. in order to specify list of required labels for agent? What if I don't care what kind of run it will be as long as it satisfies required labels? How do I specify labels without specifying a type of run?
j
Run configuration is used to tell where and how the flow should be executed. They’re a one-to-one mapping to Agents (e.g. Kubernetes Run goes with Kubernetes Agent). Setting the labels on your run config is saying something like “I only want agents with these labels to pick me up and run me”. Setting labels on the agent is saying something like “I only want to pick up flows that are a subset of these labels”. It’s a way to control which flows run where (e.g. you can have as many agents in as many execution platforms as you want) In its current implementation you can only set the labels in the run config.
a
So if I change method of execution I have to change my flow definition?
j
Yeah we haven’t yet written/exposed a route for updating the Run config post-registration but that is on our roadmap!
🚀 2