- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Не работает Cron Magento 2
Magento 2.3.2
php7.2
Установлены рекомендуемые настройки для cron в админ панели. В бегете через задачи crontab стоит команда.
Но крон работает только при ручном запуске cron:run. Но со временем копится таблица со статусом pending. приходится ее очищать вручную, чтобы потом хоть что-то выполнялось при cron:run.
Не понимаю, что именно я пропустила, чтобы cron работал самостоятельно?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Не работает Cron Magento 2
Hi @Tane4ka
Пожалуйста, обратитесь по ссылке ниже
https://www.simicart.com/blog/magento-cron-not-working/
Благодарность!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Не работает Cron Magento 2
Hello @Tane4ka
Did you configure according to this?
Use the following commands, but you may need to choose a text editor first.
*/1 * * * * php -c <ini-file-path> <your Magento install dir>/bin/magento cron:run */1 * * * * php -c <ini-file-path> <your Magento install dir>/update/cron.php */1 * * * * php -c <ini-file-path> <your Magento install dir>/bin/magento setup:cron:run
Follow this guide
https://www.cloudways.com/blog/magento-2-cron-job/
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Не работает Cron Magento 2
I have this command and host send me email every minute about task.
But than I look at Cron Scheduler > Tasks List (via module in admin) and see that Last heartbeat was only after manual cron:run....
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Не работает Cron Magento 2
They say:
(Magento 2: go to Stores > Settings-Configuration. On the left menu, under Advanced section, click System. Expand the section Cron (Scheduled Tasks))
- Generate Schedules Every: 15
- Schedule Ahead for: 20
- Missed if Not Run Within: 15
- History Cleanup Every: 10
- Success History Lifetime: 60
- Failure History Lifetime: 600
Is these cron configurations are for every group (index, default,consumers,ddg_autamation, cronscedular)?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Не работает Cron Magento 2
@Tane4ka these are the setting for all the crons.
So where ever the cron is setup it will follow these settings.
You don't have to do the settings for every type, just do it here and it will be applicable every where.
Thanks