dagster
dagster copied to clipboard
RFC (more like dump prototype) Typed resource ctor:
This is more of a pattern rather than real technology. I banged this out very quickly so it is not fleshed out. The idea here is to make it norm to provide typed constructors for resources as opposed to configured. The configurable resource is still available for advanced cases.
The big drawback here is that this breaks direct resource invocation. However I think for the spin-up/simple use case this is far more self-explantory.
Additionally a natural extension would be to generate config schema from the python types on the typed signature if that is desirable.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
To point it out explictly, the level of indirection is so that existing callsites that call configured still work
The big drawback here is that this breaks direct resource invocation. However I think for the spin-up/simple use case this is far more self-explantory.
Is there a fundamental reason it needs to break direct resource invocation?