Skip to content

Commit

Permalink
[components] Remove duplicative pushd (#26655)
Browse files Browse the repository at this point in the history
## Summary & Motivation

This is done in `load_params`, so not necessary in the subclass.

## How I Tested These Changes

BK
  • Loading branch information
schrockn authored Dec 23, 2024
1 parent b96403d commit d24a065
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from dagster._core.definitions.asset_key import AssetKey
from dagster._core.definitions.definitions_class import Definitions
from dagster._core.execution.context.asset_execution_context import AssetExecutionContext
from dagster._utils import pushd
from dagster_dbt import DagsterDbtTranslator, DbtCliResource, DbtProject, dbt_assets
from dbt.cli.main import dbtRunner
from pydantic import BaseModel, Field
Expand Down Expand Up @@ -90,9 +89,7 @@ def __init__(

@classmethod
def load(cls, context: ComponentLoadContext) -> Self:
# all paths should be resolved relative to the directory we're in
with pushd(str(context.path)):
loaded_params = context.load_params(cls.params_schema)
loaded_params = context.load_params(cls.params_schema)

return cls(
dbt_resource=loaded_params.dbt,
Expand Down

0 comments on commit d24a065

Please sign in to comment.