Detaching feed generation from magento cron
Reasons to detach:
Magento cronjob is not running, or feed fails to generate for whatever reason.
Large catalogs with other backend cron tasks. It may take hours for the cron to generate and this would freeze all other backend tasks for that time.
Steps to detach:
Disable generation through magento's cron. Do this in the admin > Stores > Configuration > Rocket Shopping Feeds > General Info > Cron Enabled.
Set dedicated crontab for feed generation. Add the lines below this using for example crontab -e command in your server’s console.
*/10 * * * * php /<magento_root>/bin/magento rocketshoppingfeed:schedule * * * * * php /<magento_root>/bin/magento rocketshoppingfeed:generate
Make sure to replace the <magento_root> with the actual path on the server, and the cron is configured under same user group as webserver user in order to maintain file permissions in check.
Debugging
If you need to check on the output of feed processing, you could run the script over ssh like this:
php /<magento_root>/bin/magento rocketshoppingfeed:generate -vvv
Before you launch this script make sure you set a feed pending for processing. Use the Run Now button in the admin.
No comments to display
No comments to display