Upstream dependencies for Automaterialization #20426
-
Hi, This is similary to 'Auto-materialize even if some parents are missing' from the docs. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @matthias-Q , this is now possible using Declarative Automation: https://docs.dagster.io/concepts/automation/declarative-automation/customizing-automation-conditions#targeting-dependencies The simplest approach at the moment would be to start with copying the implementation of To avoid this, you can tack a ...
all_deps_updated_since_cron = AutomationCondition.all_deps_match(
AutomationCondition.newly_updated().since(cron_tick_passed)
| AutomationCondition.will_be_requested()
).ignore(AssetSelection.keys(...))
... |
Beta Was this translation helpful? Give feedback.
Hi @matthias-Q , this is now possible using Declarative Automation: https://docs.dagster.io/concepts/automation/declarative-automation/customizing-automation-conditions#targeting-dependencies
The simplest approach at the moment would be to start with copying the implementation of
AutomationCondition.on_cron()
, as it seems like you want a daily cadence for your downstream asset. The behavior of this condition results in a run being launched for the downstream asset once per day, after all of its parents have been updated during that day. This is problematic, as you don't care about updates for one of those upstreams.To avoid this, you can tack a
.ignore(AssetSelection.keys(<tables you wa…