CodeIgniter Forums
CronJob CI4 - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Discussion (
+--- Thread: CronJob CI4 (/showthread.php?tid=82040)

CronJob CI4 - farhsubs - 06-04-2022

how to use cronjob on ci4 which can only be accessed by cli not public user?

RE: CronJob CI4 - MGatner - 06-07-2022

You can do it a number of ways, but I recommend creating Commands and running them via spark. If you want to try the (unreleased) Tasks library this handles the scheduling and execution of CRON jobs for you: