how does the new Pythonic Resources interact with ...
# ask-community
a
how does the new Pythonic Resources interact with the
IOManagers
input/output config schema (since these are not provided at class init)? I have an IOManager defined the old-way that uses both and I wanted to migrate to the new paradigm. The current documentation does not provide an example of how to do that: https://docs.dagster.io/master/guides/dagster/pythonic-resources#defining-pythonic-io-managers
b
Hi Andre, we will be shipping an explicit migration guide alongside the 1.3 release. There are a couple of potential approaches you can use here. If your
IOManager
manages its own internal state, you can create a separate
ConfigurableIOManagerFactory
subclass which returns an instance of your
IOManager
. If your
IOManager
is relatively simple and doesn’t have internal state, you can instead make it implement
ConfigurableIOManager
- in this case, you’d only have a single class.