Skip to content

Commit

Permalink
[dagster-dbt] Make default backfill_policy=None always for @dbt_asset
Browse files Browse the repository at this point in the history
  • Loading branch information
smackesey committed Jun 4, 2024
1 parent 8b28112 commit 47115c5
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
Nothing,
PartitionsDefinition,
RetryPolicy,
TimeWindowPartitionsDefinition,
multi_asset,
)
from dagster._core.definitions.metadata.source_code import (
Expand Down Expand Up @@ -387,13 +386,6 @@ def partitionshop_dbt_assets(context: AssetExecutionContext, dbt: DbtCliResource
**(op_tags if op_tags else {}),
}

if (
partitions_def
and isinstance(partitions_def, TimeWindowPartitionsDefinition)
and not backfill_policy
):
backfill_policy = BackfillPolicy.single_run()

return multi_asset(
outs=outs,
name=name,
Expand Down

0 comments on commit 47115c5

Please sign in to comment.