Hi team, I have a question about `run_config`. I h...
# ask-community
q
Hi team, I have a question about
run_config
. I have a lot of ops/assets within a job that use say
TagConfig
. To provide the config to the job, I have to create a dictionary mapping every
op
to the same config e.g.
Copy code
RunConfig(
    {'op_1': TagConfig(a=1, b=3), 'op_2': TagConfig(a=1, b=3), ....'op_n': TagConfig(a=1, b=3)}
)
I am trying to avoid typing this same thing for about 10 or more ops/assets. Is there a way to just provide this config to the job without having to do it for each asset/op key? Just like how resources work. Thanks
c
what you could do is instead use a resource for this - and add the
TagConfig
to the resource
q
I did that with the resource but the challenge is the resource has default values so when triggering a run from the UI, and the user is not aware of the resource, they could materialize with the default resource configuration. Am I missing anything?
I was hoping to do this with
config
because config would always prompt you for the missing configs before materializing
c
You should be able to set a ConfigurableResource without default config I believe? You would use
.configure_at_launch()
q
@chris Thank you so much. This is exactly what I was looking for.
blob salute 1