cancel
Showing results for 
Search instead for 
Did you mean: 

Cron Jobs repeating the same task at the same time.

Cron Jobs repeating the same task at the same time.

Hi Magento Forum,

I have set up a crontab with SSH and am noticing that the jobs are getting piled up and are in excess of 1000 rows in the cron_schedule table. See the screenshot below:

Screen Shot 2019-06-17 at 1.53.10 pm.png

We are running Magento 2.2.8 with PHP 7.1

This is obviously putting more load on the server and after checking a 2.1.7 instance, noticed that only a few hundred rows are being created instead.

Does anyone know why this is occurring and if there is a fix for it? I found this thread which points to the same issue but no solutions worked.

 

3 REPLIES 3

Re: Cron Jobs repeating the same task at the same time.

Hello @mark_condello 

 

 

please check below module for that

https://github.com/magemojo/m2-ce-cron

 

Hope it will help you, if works then mark as a solution.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Cron Jobs repeating the same task at the same time.

Hi @Sunil Patel ,

There are no instructions to install the module.

I assume it is loaded in the app directory. But I'm not sure about the namespace it requires. Sorry, not a Magento dev.

Is it:
app/code/MageMojo/Cron

Re: Cron Jobs repeating the same task at the same time.

Hello @mark_condello 

 

composer require magemojo/m2-ce-cron
php bin/magento module:enable MageMojo_Cron
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy


There is already mention into that page


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer