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

Aaron T

04/03/2023, 4:27 PM
Is there currently a way when using
define_asset_job
to include
resource_defs
? I want to specify a custom IO manager for a specific asset job, but it doesn't seem like this is currently supported
s

sandy

04/03/2023, 7:28 PM
This isn't currently possible - you'd need to put the IO manager on the assets you're targeting or on the
Definitions
a

Aaron T

04/03/2023, 7:32 PM
I see, is this by design, or something that might be added in the future? I guess since assets can have their own
resource_defs
, you could potentially end up overriding them if
define_asset_job
has a
resource_defs
param
s

sandy

04/03/2023, 7:34 PM
It's not something we currently envision adding, for the reason you mentioned.
define_asset_job
is essentially just meant to be a selection layer over assets that are already defined elsewhere. If different jobs were materializing the same assets using different I/O managers, it could be confusing that the same asset definition could correspond to distinct physical assets in different storage systems.
a

Aaron T

04/03/2023, 7:36 PM
That makes sense. Thank you for the clarification.
5 Views