Tim Enders
09/05/2023, 7:58 PMdbt_assets
in a job? I think I am missing how to pass the dbt resource to it. I get this error.
dagster._core.errors.DagsterInvalidDefinitionError: resource with key 'dbt' required by op 'sca_custom_assets' was not provided. Please provide a <class 'dagster._core.definitions.resource_definition.ResourceDefinition'> to key 'dbt', or change the required key to one of the following keys which points to an <class 'dagster._core.definitions.resource_definition.ResourceDefinition'>: ['io_manager']
rex
09/05/2023, 8:02 PMDefinitions
object's resources
argument needs to have DbtCliResource
supplied to it.
defs = Definitions(
assets=[sca_custom_assets],
resources={
"dbt": DbtCliResource(project_dir=os.fspath(dbt_project_dir)),
},
)
rex
09/05/2023, 8:02 PMTim Enders
09/05/2023, 8:05 PM