Anna Vasileva
06/19/2025, 1:42 PMkapa.ai
06/19/2025, 1:42 PMkapa.ai
06/19/2025, 1:42 PMforce_metrics_backfill set to true. For example: dbt test --vars '{"force_metrics_backfill": true}' This will ensure that the metrics are recalculated and the test is effectively "restarted" for the next run, rather than relying on the previous training period's data. This is particularly useful if the underlying data has changed significantly (e.g., the table was dropped and recreated), and you want the test to reflect the new state rather than historical failures or patterns. By default, Elementary optimizes for performance and does not always retrain on the full period unless this flag is set, so using force_metrics_backfill is the recommended approach in such scenarios [Slack thread on retraining tests](https://slack.com/archives/C02CTC89LAX/p1698154501770259).Anna Vasileva
06/19/2025, 3:24 PMkapa.ai
06/19/2025, 3:25 PMkapa.ai
06/19/2025, 3:25 PM