It seems that there is parameter misuse while invalidating old reports.
used parameter only says how often reports are being purged, and not for what time window. This causes that for ex. having this set to 1 day practically prevents any reports from being invalidated, regardless what is actual time window for removing old data.
I think that this parameter should be replaced with delete_logs_older_than days.
Steps to reproduce error: