robert.sh Posted November 15, 2017 Share Posted November 15, 2017 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 More sharing options...
Recommended Posts