Jump to content

Cron tasks system in WHMCS 7.3 - how can we use it?


robert.sh

Recommended Posts

Hi

Looking at the tbltasks table and the vendor/whmcs/whmcs-foundation/lib/Cron/Task/ directory, it appears that it should be possible to establish custom cron tasks with an accompanying class to create custom cron tasks for custom modules. Is this correct and if so, can you please provide some guidance on the Class interface for the cron tasks class so developers can make use of this?

Correct me if I'm wrong, but we should be able to add a row into tbltasks set the priority, frequency, enabled and periodic flags, name and point the class_name to a custom class that will do what's needed, right? We'd just need to understand the class interface?

Essentially, we are looking at introducing a custom cron task that runs every minute (or at whatever cron granularity that's set up) and would like to know the best approach for this with WHMCS 7.3.x.

Thanks in advance for any hints.

Robert

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated