Configure source data freshness tests to halt the execution of downstream assets if the source asset is stale.
version: 2
sources:
- name: pizza_shop
database: raw
freshness: # default freshness
error_after: {count: 24, period: hour}
loaded_at_field: _etl_loaded_at
tables:
- name: customers # this will use the freshness defined above
- name: orders # this will use the more specific freshness below
freshness: # make this a little more strict
error_after: {count: 12, period: hour}