Cron task won’t run even if specified in file

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/ 2>&1

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *