@ngothanhtam opened this Issue on January 27th 2021

Scheduled Task seems working once though i setup $this->hourly (It has run once and has stopped)
Must i need to configurate more?

class Tasks extends \Piwik\Plugin\Tasks
public function schedule()


public function remindMeToLogIn()
    $mail = new \Piwik\Mail();
    $mail->setFrom('noreply<a class='mention' href='https://github.com/xxx'>@xxx</a>.com');
    $mail->addTo('xxxx<a class='mention' href='https://github.com/gmail'>@gmail</a>.com');
    $mail->setSubject('Check stats');
    $mail->setBodyText('Log into your Matomo instance and check your stats!');


@sgiehl commented on January 27th 2021 Member

Hi @ngothanhtam
Please use our forum for such questions. We usually don't answer questions here.
You can find some details on scheduled tasks here: https://developer.matomo.org/guides/scheduled-tasks
In general tasks are only executed when

  • a archive:cron runs (which will execute the tasks afterwards if not disabled)
  • when browser archiving is enabled: a random visit tracked or a visits to the stats might trigger archiving (which then would trigger the tasks)
This Issue was closed on January 27th 2021
Powered by GitHub Issue Mirror