Showing results for 
Search instead for 
Did you mean: 

Configuring cron job

Configuring cron job



I have been having some issues with my hosting CPU Usage and after a lot of troubleshooting from me and the hosting company, they suggested that I will re-configure the cron jobs schedule.


I have 2 questions:

  1. What is the function of these cron jobs?
    • php bin/magento cron:run
    • php update/cron.php
    • php bin/magento setup:cron:run
  2. What are the ideal settings for cron jobs?



Re: Configuring cron job

Hi @robertbits 


Kindly refer below link : 


It may help you!

Problem Solved? Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: Configuring cron job

@Bhanu Periwal 

First of all thanks for your reply. But I still didn't understand exactly what each command does and what is the ideal timing of each of the cron job command should be.


I appreciate it if someone can give me an example

Re: Configuring cron job



I have solved the Configuring cron job problem:

Code to be implemented for cron job setup

Checkout this codes:

/usr/bin/php -c /[full path of magento root]/bin/magento cron::run >/dev/null 2>&1
/usr/bin/php -c /[full path of magento root]/update/cron.php >/dev/null 2>&1
/usr/bin/php -c /[full path of magento root]/bin/magento setup:cron:run >/dev/null 2>&1

we have set the cron job to run every 5 minutes.

For detailed solution visit:

Hope this helps,