Skip to content

halexm2/cron-extended

Repository files navigation

Magento 2 Cron Extended Extension

Requirements

  • Magento 2.0.0-2.4.x

Overview

Sometimes there is a circumstances when need to run one of the cron jobs manually, but Magento doesn't have this out of the box. This extension allows you to run any cron jobs from Magento CLI or admin panel manually.

Main Features

  • Cron Schedule List in Magento Admin
  • Table of all configured cron jobs
  • Run any cron jobs from Magento Admin
  • Run any cron jobs from Magento CLI
  • Get list of all cron jobs from Magento CLI with possibility to filter them by group or code
  • ACL (Access Control List) added

Installation

composer require halexm2/cron-extended
bin/magento setup:upgrade

CLI Commands

bin/magento cron:extended:run --job="[JOB_CODE]"
bin/magento cron:extended:list --group_filter="[GROUP_NAME]" --job_filter="[JOB_CODE]"

Usage Example

bin/magento cron:extended:run --job="indexer_reindex_all_invalid"
bin/magento cron:extended:list --group_filter="index"

Screenshots

Schedule list in Magento Admin

Schedule List

Jobs list in Magento Admin

Jobs List

Cron Jobs list in CLI

bin/magento cron:extended:list --group_filter="index"

CLI Jobs List

Running Cron Job from CLI

bin/magento cron:extended:run --job="indexer_reindex_all_invalid"

CLI Job Run