Download the PHP package graycore/magento2-cron-group-relocation without Composer

On this page you can find all versions of the php package graycore/magento2-cron-group-relocation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-cron-group-relocation

Magento 2 Cron Group Relocation

Magento Version Support

Magento v2.3 Supported Magento v2.4 Supported

Ever have one slow cron job in the default group hold up every other job in that group, and try to move it somewhere else?

Then find it running twice a night — once in reports, and still once in default.

This package moves a cron job into a different group than the one its declaring module put it in, without running it twice.

Purpose

crontab.xml is additive. Magento\Cron\Model\Config\Converter\Xml keys its output [groupId][jobCode] and the DOM merge identifies /config/group/job by group id plus job name, so redeclaring an existing job code under a second group leaves it registered in both. There is no XML construct that removes a job from a group.

That makes a vendor module's group choice effectively final — even though group choice is what controls which jobs share a lock, a process, and a schedule look-ahead window. A single slow job in default can consume the window in which another job's schedule row had to be generated, and Magento only ever schedules forward, so that job is neither run nor marked missed. It silently does not exist for that cycle.

This package lets you put such a job in its own group, so its runtime is somebody else's problem.

Getting Started

This module is intended to be installed with composer. From the root of your Magento 2 project:

  1. Download the package

  2. Enable the package

  3. Declare a destination group in your own module's etc/cron_groups.xml

  4. Map jobs into it from your own module's etc/di.xml

  5. Sequence your module after this one in etc/module.xml, so your arguments merge on top

  6. Flush the config cache

Features

Upgrading


All versions of magento2-cron-group-relocation with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
magento/framework Version ^102.0 || ^103.0
magento/module-cron Version ^100.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package graycore/magento2-cron-group-relocation contains the following files

Loading the files please wait ...