Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to run scheduled tasks before archiving process #9214

Closed
quba opened this issue Nov 13, 2015 · 3 comments
Closed

Add ability to run scheduled tasks before archiving process #9214

quba opened this issue Nov 13, 2015 · 3 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@quba
Copy link
Contributor

quba commented Nov 13, 2015

I'd like to be able to specify that given scheduled tasks should run before starting real archiving process. Example use case is when I need to fetch 3rd party data (e.g. using API) that is then used while archiving process to generate reports).

@tsteur
Copy link
Member

tsteur commented Nov 15, 2015

FYI: A solution / workaround that works already now would be to listen to some of our http://developer.piwik.org/api-reference/events#cronarchive events. Eg CronArchive.init.start. Of course this would only work for CLI archiving, not for browser archiving.

I'm not sure if we can make scheduled tasks run before real archiving process since they are not directly related together. Scheduled tasks just run at a scheduled time (more or less) and that's all. They are not TasksToRunBefore|AfterArchiving which would be a new API. Maybe there would be even a Import API or something and it would be actually the other way around that to run archiving whenever Import was run etc.

Before working on this we need to think / discuss how we want to handle such things in the future (import of 3rd party data etc which is not really supported yet by Piwik) refs #8631

@mattab mattab added this to the Mid term milestone Nov 25, 2015
@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Nov 25, 2015
@mattab
Copy link
Member

mattab commented Nov 25, 2015

@quba a workaround could be to use CronArchive.init.start for now, until we have more definite idea and use cases.

@quba
Copy link
Contributor Author

quba commented Nov 26, 2015

Another use case is TrafficGenerator plugin which generates visits via scheduled task.

@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@mattab mattab closed this as completed Jun 19, 2017
@mattab mattab added the wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. label Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants