Scheduled tasks should not launch archiving #17976
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
c: Performance
For when we could improve the performance / speed of Matomo.
Major
Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone
See af44ee1#diff-f41c275e883996b8b69cb765b1818e12e82cbe034e648bc3f7d03610cc7abad1R449-R456
The trigger=archivephp flag will cause scheduled tasks to allow archiving. Seems this hack was needed for
purgeOutdatedArchives
to work. We should fix this issue so that scheduled tasks won't launch archiving when browser archiving is disabled.This can otherwise cause many tasks to become very slow (including scheduled reports, custom alerts, some on the cloud). And it can cause issues with other archives that were invalidated in the sense that for example some reports might be archived multiple times or that they are archived in the wrong order and therefore causes results to be wrong under circumstances. Because usually the archiver makes sure to first run all daily archives, then the weekly, then ... vs this way there might be race conditions or other problems maybe.
The text was updated successfully, but these errors were encountered: