Chris Evans
12/02/2022, 5:18 PMwith_resources
with the resource_config_by_key
kwarg, the resource_defs for which the config is provided are mutated to new objects. This leads to errors like the below if there are other assets that use the same resource_defs w/ the same key. Any thoughts on this? Should I only use with_resources
once around all my assets?
dagster._core.errors.DagsterInvalidDefinitionError: Conflicting versions of resource with key 'io_manager' were provided to different assets. When constructing a job, all resource definitions provided to assets must match by reference equality for a given key.
chris
12/02/2022, 5:19 PMchris
12/02/2022, 5:22 PMwith_resources
is ideal, yes. I think there's probably a workaround here though, if you provide the same resource config and the same resource definition to two different calls to with_resources
, we should be able to reconcile thatchris
12/02/2022, 5:22 PMChris Evans
12/02/2022, 5:23 PMChris Evans
12/02/2022, 5:27 PMchris
12/02/2022, 5:31 PMChris Evans
12/02/2022, 5:31 PMchris
12/02/2022, 5:34 PMChris Evans
12/02/2022, 5:36 PM