magemojo / m2-ce-cron

Magento 2 cron project to fix bugs and common cron issues.
https://magemojo.com
MIT License
165 stars 45 forks source link

Add support for exclusive job execution within cron groups #122

Open JesKingDev opened 2 years ago

JesKingDev commented 2 years ago

Background

The standard cron multi-threading support in Magento comes from defining cron groups whose jobs run in a separate thread. This provides more throughput, which becomes unnecessary and therefore ignored in this module.

However, there are instances where crons should not execute simultaneously. The standard practice in Magento is to create cron groups that define these jobs, given there is some assurance that they will not execute at the same time.

With this module, however, parallel execution is governed by the setting for max # of jobs and not based on cron groups.

Design

Some perhaps straightforward ideas

Story