Refresh (freshness) is an important data quality control concept in dbt. Here is more specific how you could use it in daily usage.
sources:
- name: staging
database: production
schema: trip_data_all
tables:
- name: green_tripdata
- name: yellow_tripdata
freshness:
error_after: {count: 6, period: hour}
This configuration means:
freshness:
error_after:
count: 6
period: hour
# Other options:
# period: minute
# period: day
# period: week
# Run freshness check command
dbt source freshness