Hello :wave:, I have an op that requires a resourc...
# ask-community
f
Hello 👋, I have an op that requires a resource, and a graph that calls this op two times. For the first call, I need to use a resource configured in a certain way, and for the second call, the resource needs to be configured in another way. Is there a way to achieve this? Thank you in advance!
dagster bot responded by community 1
g
Make a resource_defs like:
Copy code
resrouce_defs = {
  "my_resource_config_1": resource.configured(**config1),
  "my_resource_config_2": resource.configured(**config2),
}
And set corresponding
resource_keys
on the respective `op`s