![]() |
Hi,
I'm not sure if I've understood the the Tasks package correctly, but, to test, I I've configured a very simple task to run every 5 minutes. tasks.php Code: public function init(Scheduler $schedule) Code: class add_to_log_test Code: php spark tasks:run --task testing The task runs OK, but then stops. It does not execute the task every 5 minutes ( ->everyMinute(5)) as expected. Code: [server-folder]$ php spark tasks:run --task testing Have I interpreted the use of Tasks incorrectly, or have I missed something ? Any help would be appreciated.
UPDATE
If from terminal I run Code: php spark tasks:run --task testing If I then run Code: php spark tasks:list Code: +---------+---------+-------------+---------------------+---------------------+--------------+ Code: +---------+---------+-------------+---------------------+---------------------+--------------+ Very strange, or perhaps not?
You're supposed to set a CRON job, that will manage tasks you defined: https://tasks.codeigniter.com/configurat...e-cron-job
(02-20-2025, 05:45 AM)michalsn Wrote: You're supposed to set a CRON job, that will manage tasks you defined: https://tasks.codeigniter.com/configurat...e-cron-job Thank you, I most definitely mis-understood. |
Welcome Guest, Not a member yet? Register Sign In |