Qwame
04/03/2023, 6:36 PMDefinitions
, there is a resource argument that is applied to assets by default. For e.g.
defs = Definitions(assets=[], jobs=[], resources={'io_manager': my_custom_io_manager})
This io_manager
key becomes the default io_manager
for assets and asset jobs. However, I am noticing this is not the case for ops and op jobs. how can I pass this key from the Definitions
to a job without having to create the resource again in the resource_defs
argument for jobs?sandy
04/03/2023, 7:30 PMBindResourcesToJobs
- @ben - what's the best place to find an example for this?ben
04/03/2023, 7:42 PMDefinitions
, e.g.
defs = Definitions(
jobs=BindResourcesToJobs([my_job, my_other_job]),
resources={"io_manager": my_custom_io_manager}
)
(This will be the default behavior in 1.3+)Qwame
04/03/2023, 9:50 PM