Task Scheduler Improvements
|Reported by:||JulienM||Owned by:||JulienM|
|Priority:||normal||Milestone:||1.x - Piwik 1.x|
Description (last modified by JulienM)
- Task parameters
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.
- Timetable cleanup
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.
- Do not execute a newly created task
See TaskScheduler.php#L80 :
/* * Task has to be executed if : * - it is the first time, ie. rescheduledTime is not set * - that task has already been executed and the current system time is greater than the * rescheduled time. */
The task should only be scheduled and not run.
Note: do not break the $forceScheduledTasks feature.
Change History (13)
comment:1 Changed 14 months ago by JulienM (JulienMoumne)
- Owner set to JulienM
- Status changed from new to assigned
comment:5 Changed 14 months ago by JulienM (JulienMoumne)
- Resolution set to fixed
- Status changed from assigned to closed