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
Task Scheduler Improvements #3704
Labels
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone
Comments
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is currently not possible to schedule the execution of a method with parameters, see TaskScheduler.php#L98
This is required to be able to send PDF/HTML/SMS at different times, see #3706.
In a first iteration, only one parameter will be supported.
Tasks that are being scheduled are stored in the option table in the option name "TaskScheduler.timetable".
In future updates of Piwik, if a scheduled task is not needed anymore, it would not be removed from the option table.
Currently, if a task has never been executed, it will be executed as soon as the runTasks() method retrieves the new task via the Piwik_PostEvent() method.
See TaskScheduler.php#L80 :
The task should only be scheduled and not run.
Note: do not break the $forceScheduledTasks feature.
The text was updated successfully, but these errors were encountered: