PHPackages                             wojtekn/magento2-cron-manager - 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. wojtekn/magento2-cron-manager

ActiveMagento2-module

wojtekn/magento2-cron-manager
=============================

Magento 2 module which allows enabling/disabling Magento 2 cron jobs in crontab.

1.0.3(6y ago)05811MITPHPPHP ~7.1.0|~7.2.0|~7.3.0

Since Nov 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wojtekn/magento2-cron-manager)[ Packagist](https://packagist.org/packages/wojtekn/magento2-cron-manager)[ RSS](/packages/wojtekn-magento2-cron-manager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Magento 2 Crontab Manager Module
================================

[](#magento-2-crontab-manager-module)

A Magento 2 module which adds CLI commands to enable and disable Magento 2 crontab entries.

Installation
------------

[](#installation)

Please, use [Composer](https://getcomposer.org) and add `wojtekn/magento2-cron-manager` to your dependencies eg.

```
$ composer require wojtekn/magento2-cron-manager

```

Then enable the module and run setup upgrade to be sure that module is installed and enabled:

```
$ php bin/magento setup:upgrade

```

If you're using `production` or `default` Magento 2 mode you need to run Dependency Injection compilation process:

```
$ php bin/magento setup:di:compile

```

Usage
-----

[](#usage)

### Before you start

[](#before-you-start)

Make sure to backup your current crontab entries to be able to revert them if something goes wrong.

You can do this by running:

```
crontab -l > ~/crontab.backup

```

### Simple usage

[](#simple-usage)

Before first use edit crontab using default editor by running `crontab -e` and add tags showing where Magento 2 related jobs start and end. That part of the crontab should look as follows:

```
# [start:magento]
* * * * * php /bin/magento cron:run --group=index | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
* * * * * php /bin/magento cron:run --group=mailchimp | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
# [end:magento]

```

Now run following command to disable CRON entries:

```
php bin/magento cron:crontab:disable

```

And this one to enable CRON entries:

```
php bin/magento cron:crontab:enable

```

### Advanced usage

[](#advanced-usage)

If you run multiple Magento environments on the same server you may want to define multiple crontab groups and enable/disable only particular one.

To define custom group, replace "magento" key with another label eg. "custom-group":

```
# [start:magento]
* * * * * php /bin/magento cron:run --group=index | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
* * * * * php /bin/magento cron:run --group=mailchimp | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
# [end:magento]

# [start:custom-group]
* * * * * php /bin/magento cron:run --group=another | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
# [end:custom-group]

```

Then you can run following command to disable CRON entries from "custom-group" group:

```
php bin/magento cron:crontab:disable --group=custom-group

```

And this one to enable those CRON entries:

```
php bin/magento cron:crontab:enable --group=custom-group

```

Default value for `group` parameter is `magento`.

To Do
-----

[](#to-do)

- allow listing cron entries

Credits
-------

[](#credits)

- Developed by [Wojtek Naruniec](https://naruniec.me/)
- Loosely inspired by [MediovskiTechnology/php-crontab-manager](https://github.com/MediovskiTechnology/php-crontab-manager)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~157 days

Total

4

Last Release

2277d ago

PHP version history (3 changes)1.0.0PHP ~7.0.0|~7.1.0|~7.2.0

1.0.1PHP ~5.6.0|~7.0.0|~7.1.0|~7.2.0

1.0.3PHP ~7.1.0|~7.2.0|~7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/289ef61aa160c17ed64786a2d362fdc56e8c6ae3bb7d5e14303373e70f1fff14?d=identicon)[wojtekn](/maintainers/wojtekn)

---

Top Contributors

[![wojtekn](https://avatars.githubusercontent.com/u/727413?v=4)](https://github.com/wojtekn "wojtekn (9 commits)")

---

Tags

magento2magento2-extensionmagento2-module

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wojtekn-magento2-cron-manager/health.svg)

```
[![Health](https://phpackages.com/badges/wojtekn-magento2-cron-manager/health.svg)](https://phpackages.com/packages/wojtekn-magento2-cron-manager)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[zepgram/module-rest

Technical module to industrialize API REST call with dependency injection pattern using Guzzle library

1326.2k](/packages/zepgram-module-rest)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[mage-os/mageos-common-async-events

Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.

147.7k2](/packages/mage-os-mageos-common-async-events)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

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