QQ: is there a difference between "io_manager_def"...
# ask-community
m
QQ: is there a difference between "io_manager_def" and "io_manager_key" ?
🤖 1
dagster bot responded by community 1
g
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