Adam Posted June 26, 2017 Report Share Posted June 26, 2017 Hello, I was following the documentation on how to create a custom cron job for a plugin: https://docs.blesta.com/x/PQEh and I noticed that after I called CronTasks::add() the cron job was not being called by cron or showing up under Company > Automation settings. I had to look at the source docs and figure out that in addition to calling CronTasks::add() I need to run CronTasks::addTaskRun(). May you please update the confluence document to reminder developers to call CronTasks::addTaskRun() after CronTasks:add() during installs? Thanks, -Adam Blesta Addons and activa 2 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted June 29, 2017 Report Share Posted June 29, 2017 Good catch Michael 1 Quote Link to comment Share on other sites More sharing options...
Paul Posted July 6, 2017 Report Share Posted July 6, 2017 I've alerted @Jono about this, hopefully he can make the change to the documentation. Michael 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.