https://dagster.io/ logo
#ask-community
Title
# ask-community
f

Félix Tremblay

01/31/2023, 1:41 AM
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

Gustavo Carvalho

01/31/2023, 1:53 AM
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