Cron task won’t run even if specified in file

  cron, cron-task, php, symfony, symfony4

I have problem when running cron task in Symfony.

I tried command that it’s set to run manually and it work but when I set cron it does not. I have two cron jobs in crons file and the first one works but second does not.

Is the problem with the file or I have to set it in yml file?

This is my crons file: (First one is executed)

* * * * *  /usr/local/bin/php /var/www/html/bin/console app:check-user >> /var/www/html/var/log/post.errors.cron.log 2>&1;
* * * * *  /usr/local/bin/php /var/www/html/bin/console app:save-user >> /var/www/html/var/log/user.report.cron.log 2>&1

Source: Symfony Questions

LEAVE A COMMENT