Subchapter 2.10
references/automation/declarative-automation/INDEX.mdMarkdown3 KBView on GitHub
Declarative automation uses AutomationCondition objects to describe when assets should execute. Instead of scheduling jobs, you define conditions on assets that the system evaluates automatically.
Modern automation pattern: Set conditions directly on assets rather than creating separate schedules or sensors. The system evaluates conditions every 30 seconds and launches runs when conditions are met.
Benefits:
Basic examples: See the main SKILL.md Quick Reference for eager(), on_cron(), and on_missing() examples.
default_automation_condition_sensor must be toggled on in the Dagster UI under Automation → SensorsStart with one of these three conditions rather than building conditions from scratch:
eager(): Execute immediately when dependencies updateon_cron(): Execute on a schedule after dependencies updateon_missing(): Execute missing partitions when dependencies are readyAll three main conditions can be customized:
.without().replace().allow() and .ignore()& (AND), | (OR), ~ (NOT)missing(), newly_updated()since(), any_deps_match()