dagster
dagster copied to clipboard
(bugfix) make resources work with observe()
observe() currently doesn't work when you have resources required on the observable asset, despite there being a resources arg. This is because build_assets_job
expects a fully resolved list of resource definitions, which observe() relies on the Definitions object to provide. Fix by switching to define_asset_job
.
How I tested this Added a test that explicitly adds resource requirements to the observable source asset. Went from failing to not failing after this change.