Skip to content

Commit

Permalink
Non-transitive sync status
Browse files Browse the repository at this point in the history
[INTERNAL_BRANCH=sean/non-transitive-sync]
  • Loading branch information
smackesey committed Jul 3, 2024
1 parent 6ad59d9 commit 97ea475
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 264 deletions.
13 changes: 1 addition & 12 deletions python_modules/dagster/dagster/_core/definitions/data_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,18 +518,7 @@ def _get_stale_causes_materialized(self, key: "AssetKeyPartitionKey") -> Iterato
partition_deps = self._get_partition_dependencies(key=key)
for dep_key in sorted(partition_deps):
dep_asset = self.asset_graph.get(dep_key.asset_key)
if (
self._instance.use_transitive_stale_causes
and self._get_status(key=dep_key) == StaleStatus.STALE
):
yield StaleCause(
key,
StaleCauseCategory.DATA,
"stale dependency",
dep_key,
self._get_stale_causes(key=dep_key),
)
elif provenance:
if provenance:
if not provenance.has_input_asset(dep_key.asset_key):
yield StaleCause(
key,
Expand Down
4 changes: 0 additions & 4 deletions python_modules/dagster/dagster/_core/instance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,10 +961,6 @@ def auto_materialize_use_sensors(self) -> int:
def global_op_concurrency_default_limit(self) -> Optional[int]:
return self.get_settings("concurrency").get("default_op_concurrency_limit")

@property
def use_transitive_stale_causes(self) -> bool:
return False

# python logs

@property
Expand Down
Loading

0 comments on commit 97ea475

Please sign in to comment.