matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.81k stars 2.64k forks source link

Changing email report schedule doesn't update task timetable #19272

Open Starker3 opened 2 years ago

Starker3 commented 2 years ago

It seems as though updating the email schedule for an email report doesn't update the task timetable for that report.

For example, if we create a new scheduled report with the schedule as Monthly: Thursday-26-05-2022 11-41-40

The task timetable sets the time/date that it will next run, in this case the first day of the next month (The report just created here has an ID of 8): Thursday-26-05-2022 11-44-08

But if this report is updated to a different schedule, for example Daily: Thursday-26-05-2022 11-44-30

Then the task timetable is not updated with the correct next date (Even after running a normal core:archive to let scheduled tasks run like normal): Thursday-26-05-2022 11-48-23

Your Environment

bx80 commented 2 years ago

@Starker3 Can you confirm that deleting and recreating the report works around this issue?

Starker3 commented 2 years ago

@bx80 Deleting the report and creating a new one works to get the correct schedule set, yes.