Not all visits taken into account during cron archiving #11027
Labels
answered
For when a question was asked and we referred to forum or answered it.
Bug
For errors / faults / flaws / inconsistencies etc.
Waiting for user feedback
Indicates the Matomo team is waiting for feedback from the author or other users.
Milestone
This issue happens when following conditions are met:
--force-all-websites
or--force-idsites
is provided tocore:archive
.Expected behaviour: archiving of certain website should be triggered by any new visit since last archiving, regardles of time it took place.
Actual behaviour: when a visit takes place during archiving, it won't trigger website's preprocessing during next archiving.
This is problematic for small websites with few visits per day, since it causes lack of reports for some days.
Detailed description
Archiving works as follows:
But:
Let's say archiving started at 10:00. Website with id 1 is processed at the beginning of archiving process, there are no new visits. Archiving processes the rest of 5000 websites in 5.5 hours and last successful archiving time is saved (15:30). But meanwhile, at 14:00, another visit took place. Next archiving starts at 16:00. It checks whether since last successful archiving (15:30) there were new visits and it skips website 1 since there are no new visits. Visit at 14:00 is missed.
To avoid such situation, archiving could check for new visits since last successful archiving of given website for day period. There is still a chance that some visits may be missed, but not so big.
The fastest workaround for this is to use
--force-all-websites
option incore:archive
.The text was updated successfully, but these errors were encountered: