refs #5301 make sure to pass the instance to ScheduledTasks and not the className. Otherwise it is called statically. The disadvantage of this way is all task will be stored under the name "Tasks.$methodName" which can lead to naming collisions very quickly if it is not already the case. I am wondering why we keep only the last part of the class name and not the full namespaced class name here: https://github.com/piwik/piwik/blob/master/core/ScheduledTask.php#L105 ? Keeping the namespace would fix the naming collision. If we change to full namespace it could be possible a scheduled task is not executed once as the name changes