PHPackages                             cherednichenkoa/m2-ce-cron - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cherednichenkoa/m2-ce-cron

ActiveMagento2-module

cherednichenkoa/m2-ce-cron
==========================

Replacement package for Magento 2 Cron Functionality

1.2.7.6-stable(7y ago)03.4k1MITPHPPHP &gt;=7.0.0

Since May 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cherednichenkoa/m2-ce-cron)[ Packagist](https://packagist.org/packages/cherednichenkoa/m2-ce-cron)[ Docs](https://github.com/magemojo/)[ RSS](/packages/cherednichenkoa-m2-ce-cron/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (16)Used By (0)

[![MageMojo](https://camo.githubusercontent.com/0d0ae7a567cf08fa3f9e76df3d399a1546bee438550cdcbe7eb7c3264a4c28e3/68747470733a2f2f6d61676574616c6b2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031372f31312f7137784a5a614d3554496d4d4e376d55496230632e706e67)](https://magemojo.com/)

Cron
====

[](#cron)

#### This module for Magento 2 overrides base magento cron functionality, fixes known bugs, and provides a cron service model to control cron process execution.

[](#this-module-for-magento-2-overrides-base-magento-cron-functionality-fixes-known-bugs-and-provides-a-cron-service-model-to-control-cron-process-execution)

[![Version 1.2.7](https://camo.githubusercontent.com/516ef9a6b9138fdc7a376719b33f5f7893d289ad09a24aa6daade968320b79ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e322e372d677265656e2e737667)](https://camo.githubusercontent.com/516ef9a6b9138fdc7a376719b33f5f7893d289ad09a24aa6daade968320b79ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e322e372d677265656e2e737667)

The default cron can overlap and fill the cron\_schedule table, which can cause exponentially more jobs to run on each cron interval, until finally the crons run continously and never complete. The high number of cron jobs can also crash servers hosting Magento 2.

This module replaces the cron management with a service that accepts jobs. As jobs are scheduled, they are picked up by this service for execution. If a job is already running and another is picked up with the same job code, the new one is marked as missed. Duplicate jobs are prevented from running, reducing server overhead.

Think of the default cron as a factory that suddenly appears and runs any number of tasks. If those tasks do not complete by the next cron interval, they keep processing but another factory spontaneously appears and run another set of jobs which can overlap with the original factory.

The module removes the possibility of overlapping jobs by having a single source service that processes jobs in proper order without duplication. There is one factory working all the time to get your jobs done.

In addition to the service model many other enhancements have been made. For example a re-write of left join on update statement that forced a full table scan on cron\_schedule for history. Statement would lock because it's reading from same table it was trying to update.

In version 1.1 Cron Reporting was added to the admin to show job code statistics and list cron run errors.

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md).

Benefits
--------

[](#benefits)

- Speeds up execution of cron.
- Stops db locking.
- Prevents cron history records from exploding.
- Stops cron processes from overruning each other.
- Stops the cron from running while system is under configurable load conditions.
- Sets the max number of simultaneous cron processes.
- Sets the amount of history.

Admin Options
-------------

[](#admin-options)

**Cron Enabled** - Turn the cron on/off.

**Maximum Cron Processes** - The number of cron threads running in parallel. This option is the sum of all defined jobs. Example: If you have 5 jobs set to run at midnight, Maximum Cron Processes set to 1, only 1 job will execute sequentially until all 5 are completed. Default 3.

**PHP Binary Name / Path** - The name of your php binary you run from the shell. Usually php or php70. You can optionally include the full path to the binary. Default php. You can also add inline options here such as php -dmemory\_limit=8096M If you want to have a custom ini value.

**Max Load Average** - Defined by the php function sys.getloadavg() / number of cpu cores. The function sys.getloadavg() is reported 1.0 for each core in use, just like the load average reported in top. The number of cpu cores is pulled from /proc/cpuinfo and load average is divided by this number. Example: If you have 8 cores and you're using 6 then this is returned as 0.75. If your Max Load Average is 0.76 your crons will not run. Your load average falls to 0.74. Your crons will run. Any cron that was scheduled to run but didn't will be run. If the same cron was missed multiple times, the most recent job will run, and the rest will be marked as missed. Default is 0.75 (75% of your available cpu).

**History Retention** - The number of days history to keep in the cron\_schedule table. Default 1 (1 day).

Composer Install
----------------

[](#composer-install)

- Run these commands in your terminal:

```
composer require cherednichenkoa/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
```

- Log into your admin and set your options under System -&gt; Cron Settings
- Enable cron jobs as defined if it is not already enabled here:

License
-------

[](#license)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 82.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~6 days

Total

14

Last Release

2650d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56e87def9beee8bac7ccb26e2d0e6acb3fd5ebdeb6fd1bd82de57128aadc7d55?d=identicon)[cherednichenkoa](/maintainers/cherednichenkoa)

---

Top Contributors

[![gnuzealot](https://avatars.githubusercontent.com/u/7715856?v=4)](https://github.com/gnuzealot "gnuzealot (81 commits)")[![JesKingDev](https://avatars.githubusercontent.com/u/10249540?v=4)](https://github.com/JesKingDev "JesKingDev (5 commits)")[![cherednichenkoa](https://avatars.githubusercontent.com/u/19637446?v=4)](https://github.com/cherednichenkoa "cherednichenkoa (5 commits)")[![blmage](https://avatars.githubusercontent.com/u/25432517?v=4)](https://github.com/blmage "blmage (2 commits)")[![AurelienLavorel](https://avatars.githubusercontent.com/u/5844661?v=4)](https://github.com/AurelienLavorel "AurelienLavorel (1 commits)")[![shiftedreality](https://avatars.githubusercontent.com/u/3396658?v=4)](https://github.com/shiftedreality "shiftedreality (1 commits)")[![codybswaney](https://avatars.githubusercontent.com/u/15198961?v=4)](https://github.com/codybswaney "codybswaney (1 commits)")[![keithbentrup](https://avatars.githubusercontent.com/u/253579?v=4)](https://github.com/keithbentrup "keithbentrup (1 commits)")[![scottsb](https://avatars.githubusercontent.com/u/6756989?v=4)](https://github.com/scottsb "scottsb (1 commits)")

---

Tags

cronmagento2

### Embed Badge

![Health badge](/badges/cherednichenkoa-m2-ce-cron/health.svg)

```
[![Health](https://phpackages.com/badges/cherednichenkoa-m2-ce-cron/health.svg)](https://phpackages.com/packages/cherednichenkoa-m2-ce-cron)
```

###  Alternatives

[dragonmantank/cron-expression

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

4.7k474.1M481](/packages/dragonmantank-cron-expression)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[lorisleiva/cron-translator

Makes CRON expressions human-readable

3148.5M31](/packages/lorisleiva-cron-translator)[magemojo/m2-ce-cron

Replacement package for Magento 2 Cron Functionality

164326.7k](/packages/magemojo-m2-ce-cron)[kiwicommerce/module-cron-scheduler

Easily set up and manage cron jobs from the backend with a beautiful and managed timeline feature. Find the actual load on CPU/Memory by cron job execution.

74603.3k](/packages/kiwicommerce-module-cron-scheduler)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
