https://dagster.io/ logo
Title
m

Mycchaka Kleinbort

02/09/2023, 3:35 PM
QQ: is there a difference between "io_manager_def" and "io_manager_key" ?
:dagster-bot-resolve: 1
:dagster-bot-responded-by-community: 1
g

Guy McCombe

02/09/2023, 4:52 PM
Yeah!
io_manager_def
takes an IOManagerDefinition, whereas
io_manager_key
takes a string which is the resource key that maps to the
io_manager
object. If you have an io manager defined in your resources dictionary that you pass to your
Definitions
object, you’ll probably want to use
io_manager_key
to reference that io manager.
Personally, I mostly use
io_manager_key
. But it can be helpful to use
io_manager_def
for one-off io managers that won’t be used elsewhere in your project
❤️ 1