Hi there! One of our freshness anomaly tests is fa...
# community-support
l
Hi there! One of our freshness anomaly tests is failing because the file usually arrives every 15hs but for the past couple of days it was arrived few hours later. For us it's OK as long as we receive it before 24h. I tried changing the sensitivity of it and also adding a detection_delay of 24hrs but the test is still failing. Any ideas how to make the test not to fail if the file is received within 24h?
So I actually managed to solve it. Looks like the issue was that I had my time bucket set to day and the delay to hours. Once I had both in hours it worked. Basically detection delay doesn't work in this case:
Copy code
-elementary.freshness_anomalies:
              timestamp_column: _FIVETRAN_SYNCED
              anomaly_sensitivity: 2
              time_bucket:
                period: day
                count: 1
              detection_delay:
                period: hour
                count: 24
but does work in this code:
Copy code
- elementary.freshness_anomalies:
              timestamp_column: _FIVETRAN_SYNCED
              anomaly_sensitivity: 2
              time_bucket:
                period: hour
                count: 24
              detection_delay:
                period: hour
                count: 24