Skip to content

Upstream dependencies for Automaterialization #20426

Answered by OwenKephart
matthias-Q asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@matthias-Q
Comment options

@matthias-Q
Comment options

@OwenKephart
Comment options

@matthias-Q
Comment options

@OwenKephart
Comment options

Answer selected by OwenKephart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: declarative-automation Related to Declarative Automation, AutomationConditions and Auto Materialization
2 participants