alekseon/module-cleanrunningjobs

Mark running cronjobs as error if older than 3 days

Installs: 33 632

Dependents: 0

Suggesters: 0

Security: 0

Stars: 23

Watchers: 4

Forks: 8

Open Issues: 2

Type:magento2-module

1.0.7 2023-05-26 15:33 UTC

This package is auto-updated.

Last update: 2024-09-26 18:20:25 UTC


README

In case your Magento 2 app is closed/shutdown/explode when there is running cronjob it will stay in "running" status forever.

This might be the reason why your Magento 2 will create more and more jobs in cron_schedule table and that will result that your Magento 2 will use 100% of CPU after few weeks.

This extension fix this issue by marking "running" cronjobs as error if they are older than 3 hours.

More informations you will find on our blog: https://alekseon.com/en/blog/post/magento-2-slow-and-cpu-usage-gets-high-this-might-be-the-reason/

Installation

  • From your CLI run: composer require alekseon/module-cleanrunningjobs
  • Flush your cache.
  • Upgrade database: bin/magento setup:upgrade