PHPackages                             blackbird/clean-blocked-running-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. [CLI &amp; Console](/categories/cli)
4. /
5. blackbird/clean-blocked-running-cron

ActiveMagento2-module[CLI &amp; Console](/categories/cli)

blackbird/clean-blocked-running-cron
====================================

1.0.4(9mo ago)34.8k1MITPHPPHP &gt;=7.1

Since Feb 16Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/blackbird-agency/magento-2-clean-blocked-running-cron)[ Packagist](https://packagist.org/packages/blackbird/clean-blocked-running-cron)[ RSS](/packages/blackbird-clean-blocked-running-cron/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Clean blocked running cron
==========================

[](#clean-blocked-running-cron)

[![License: MIT](https://camo.githubusercontent.com/a7a0611c19bacfd00f9244cd00e9466feb8afcd139afe9554dad78e89f5664ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626c61636b626972642d6167656e63792f6d6167656e746f2d322d63617465676f72792d656d7074792d627574746f6e2e7376673f7374796c653d666c61742d737175617265)](./LICENSE)

This module add a CLI command which allows you to end a CRON job that is running for a defined time. The free source is available at the [GitHub repository](https://github.com/blackbird-agency/magento-2-clean-blocked-running-cron).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1
- Magento &gt;= 2.2

Setup
-----

[](#setup)

### Get the package

[](#get-the-package)

**Zip Package:**

Unzip the package in app/code/Blackbird/CleanBlockedRunningCron, from the root of your Magento instance.

**Composer Package:**

```
composer require blackbird/clean-blocked-running-cron

```

### Install the module

[](#install-the-module)

Go to your Magento root, then run the following Magento command:

```
php bin/magento setup:upgrade

```

**If you are in production mode, do not forget to recompile and redeploy the static resources, or to use the `--keep-generated` option.**

### Command

[](#command)

This extension gives you a new CLI command for your Magento :

```
php /bin/magento cron:blocked:clean -H  -M  -c

```

#### Parameters

[](#parameters)

- `-H` or `--hours` and `-M` or `--minutes` allows you to define how long after execution the jobs are considered blocked.
- `-c` or `--cron` allows you to define which cron jobs need to be killed after H hours and M minutes execution. It's possible to define multiple jobs separated by a comma.

The idea is to use this command in your crontab for each job which sometime blocked.
**Be carefully to define the appropriate hours and minutes for the defined cron job codes to not kill real running jobs.**

Support
-------

[](#support)

- If you have any issue with this code, feel free to [open an issue](https://github.com/blackbird-agency/magento-2-clean-blocked-running-cron/issues/new).
- If you want to contribute to this project, feel free to [create a pull request](https://github.com/blackbird-agency/magento-2-clean-blocked-running-cron/compare).

Contact
-------

[](#contact)

For further information, contact us:

- by email:
- or by form: [https://black.bird.eu/en/contacts/](https://black.bird.eu/contacts/)

Authors
-------

[](#authors)

- [**Thibaud Ritzenthaler**](https://github.com/thibaud-bird) - *Maintainer* -
- [**Blackbird Team**](https://github.com/blackbird-agency) - *Contributor* -

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

***That's all folks!***

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance56

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~404 days

Total

5

Last Release

295d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12445118?v=4)[anthony-blackbird](/maintainers/anthony-blackbird)[@anthony-blackbird](https://github.com/anthony-blackbird)

---

Top Contributors

[![thibaud-bird](https://avatars.githubusercontent.com/u/79136285?v=4)](https://github.com/thibaud-bird "thibaud-bird (6 commits)")[![bruno-blackbird](https://avatars.githubusercontent.com/u/77049160?v=4)](https://github.com/bruno-blackbird "bruno-blackbird (3 commits)")[![kevin-blackbird](https://avatars.githubusercontent.com/u/37531549?v=4)](https://github.com/kevin-blackbird "kevin-blackbird (3 commits)")[![anthony-blackbird](https://avatars.githubusercontent.com/u/12445118?v=4)](https://github.com/anthony-blackbird "anthony-blackbird (2 commits)")

### Embed Badge

![Health badge](/badges/blackbird-clean-blocked-running-cron/health.svg)

```
[![Health](https://phpackages.com/badges/blackbird-clean-blocked-running-cron/health.svg)](https://phpackages.com/packages/blackbird-clean-blocked-running-cron)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[yireo/magento2-theme-commands

CLI commands to manipulate themes

1334.2k1](/packages/yireo-magento2-theme-commands)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[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)
