Katamaze / WHMCS-Action-Hook-Factory

Free collection of Action Hooks, Reports and Modules to perfect your WHMCS
https://katamaze.com
MIT License
210 stars 84 forks source link

[Feature Request] free cron at a certain time #35

Open Remitur opened 3 years ago

Remitur commented 3 years ago

The way WHMCS manages the crons is poor: mainly, just two main hook points (AfterCronJob and DailyCronJob) that allow a script to run or every 5 minutes (or any other lapse of time set by the owner of WHMCS) or during main daily cron job (at the time that is set by the owner of WHMCS)

But, what if I need to run a script in at a certain time?

The only way, currently, is setting in the system a dedicated cron, to run my own script... but this is complicated to set, and even more complicated to monitor.

So, it would be useful a hook that, using AfterCronJob (and so, running every 5 minutes or so) do the following: