You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Cron {
public function run() {
$config = [
"emailFrom" => "cron@example.com",
"emailTo" => "me@example.com"
];
$scheduler = new Scheduler($config);
$scheduler->call('myFunc')->every()->minute()->output(APPPATH .'logs/cron.log');
}
function myFunc() {
echo 'Message called from cron');
}
}
I have a cron setup to call this every minute, however myFunc() never gets called. I can see a run method in the Scheduler class which never gets called. Am I missing something obvious in my setup?
The text was updated successfully, but these errors were encountered:
I have the following set up in a PHP class:
I have a cron setup to call this every minute, however myFunc() never gets called. I can see a run method in the Scheduler class which never gets called. Am I missing something obvious in my setup?
The text was updated successfully, but these errors were encountered: