Jump to content

Documentation: Plugin Cron Task Missing Add Task Run


Recommended Posts

Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...