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

André Augusto

04/12/2023, 2:03 AM
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

ben

04/14/2023, 5:15 PM
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.
6 Views