Jump to content

Documentation: Plugin Cron Task Missing Add Task Run


Adam

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...