[Issue] Add --exclude-group to cron:run #36628
Labels
Area: Framework
Component: Cron
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P3
May be fixed according to the position in the backlog.
Progress: done
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
This issue is automatically created based on existing pull request: #34117: Add --exclude-group to cron:run
Description
https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-cron.html#config-cli-cron-group-run
When you decide to split a single cron group with the
--group
flag it means you need to do so for every group in your instance.It's pretty common for third party modules to define their own groups whenever they like, so we have to keep up to date with the defined groups in the instance to keep adding these to our crontab when new groups are added.
One of my instances currently has 11 groups to manage, more will come in the future and its just something I need to mentally keep an eye on, a bit annoying.
In my case I only really want to run the crons like
This will give me better granular control over the indexer crons which can be useful when your store reaches hundreds of thousands of SKUs. Any other random cron groups would then still be able to run by default like in normal operation.
For future proofing I've made the
--exclude-group
flag stackable so you can define it multiple times likeManual testing scenarios (*)
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: