Search by

idhamchoudry / module-indexer-warning

idhamchoudry

Resets indexers stuck in a working state, reindexes them and emails a warning.

Package info

github.com/idhamchoudry/M2-stuck-indexer-notifier

Type:magento2-module

pkg:composer/idhamchoudry/module-indexer-warning

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-10-21 03:35 UTC

This package is auto-updated.

Last update: 2026-11-04 20:06:03 UTC


README

Cron (idhamchoudry_indexerwarning_reset_stuck, every 5 minutes) that finds indexers stuck in a "working" state (indexer state or mview state) longer than a configurable threshold and emails a warning.

  • Reset Stuck Indexers = Yes (default): resets them (indexer → invalid, mview → idle), runs a full reindex, and emails the result.
  • Reset Stuck Indexers = No: leaves them as they are and emails a warning once per stuck episode (tracked in the idhamchoudry_indexerwarning_warned flag).

Configuration: Stores > Configuration > Idham Choudry > Indexer Warning

Path Default
indexer_warning/general/enabled 1
indexer_warning/general/stuck_after_minutes 30
indexer_warning/general/reset_enabled 1
indexer_warning/email/enabled 1
indexer_warning/email/recipient empty (comma-separated, required to send)
indexer_warning/email/cc empty (comma-separated)
indexer_warning/email/sender_identity general
indexer_warning/email/template indexer_warning_email_template

Log file: var/log/indexer-warning.log.

Installation

Via Composer:

composer require idhamchoudry/module-indexer-warning
bin/magento module:enable IdhamChoudry_IndexerWarning
bin/magento setup:upgrade

Or manually: copy this repository to app/code/IdhamChoudry/IndexerWarning, then run the module:enable and setup:upgrade commands above (plus setup:di:compile in production mode).

Magento's cron must be running for the check to execute.

License

MIT © Idham Choudry