{"data":{"id":"magento2-40110","source":"github-pr","sourceRef":"magento/magento2#40110","title":"Allow queue-specific configuration to exceed the default max-messages value","pr":{"number":40110,"url":"https://github.com/magento/magento2/pull/40110","author":"baudeval","mergedAt":"2025-09-15T06:18:45Z","mergeCommit":"79fdc472440e328a33273745ca91253d24b279bf","headCommit":"0f269603bbf6e7c77407ab7af5e5c83f84f818b9","baseRef":"2.4-develop","diffSha256":"90a613e12535bf7d0376dedf039c9ba30857ebca6819aa65b152b4df67b3de59"},"issues":[{"number":40121,"url":"https://github.com/magento/magento2/issues/40121","title":"[Issue] Allow queue-specific configuration to exceed the default max-messages value","labels":["Area: Framework","Component: MessageQueue","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"pr-derived"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-message-queue"],"files":[{"path":"app/code/Magento/MessageQueue/Model/Cron/ConsumersRunner.php","change":"modified","package":"magento/module-message-queue"}],"stripped":{"tests":["app/code/Magento/MessageQueue/Test/Unit/Model/Cron/ConsumersRunnerTest.php"],"docs":[],"outsideCode":[]},"linesChanged":41,"mergeBatched":false,"excluded":null,"sections":{"description":"Allow queue-specific configuration to exceed the default max-messages value","stepsToReproduce":"Create queue with max message higter default value","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Framework"],"component":["MessageQueue"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"8b3532130f083820fcad209d813813f644b05e45c95cf9423f35d8f1853fed81","isBugfix":0.7703,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.8912,"feature":0.0654,"refactor":0.02,"tests_only":0.0054,"docs_only":0.0022,"dependency":0.0027,"cleanup":0.0131},"confidence":0.7656},"scope":{"score":0.8655,"probabilities":{"0":0.3904,"1":0.3537,"2":0.2559},"confidence":0.0145},"risk":{"score":0.4077,"probabilities":{"0":0.6386,"1":0.3152,"2":0.0462},"confidence":0.2639},"area":{"choice":"framework","probabilities":{"catalog":0.0024,"checkout":0.0023,"customer":0.002,"admin":0.0044,"graphql_api":0.002,"framework":0.981,"frontend":0.0025,"other":0.0034},"confidence":0.9571},"securityRelevant":0.006,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.005,"2.4.0-p1":0.0039,"2.4.1":0.0041,"2.4.1-p1":0.0035,"2.4.2":0.0049,"2.4.2-p1":0.0044,"2.4.2-p2":0.0052,"2.4.3":0.0084,"2.4.3-p1":0.0077,"2.4.3-p2":0.0081,"2.4.3-p3":0.0055,"2.4.4":0.0138,"2.4.4-p1":0.0063,"2.4.4-p10":0.0065,"2.4.4-p11":0.0072,"2.4.4-p12":0.0065,"2.4.4-p13":0.0062,"2.4.4-p14":0.0079,"2.4.4-p15":0.0061,"2.4.4-p16":0.0062,"2.4.4-p17":0.0054,"2.4.4-p18":0.0049,"2.4.4-p2":0.0029,"2.4.4-p3":0.0033,"2.4.4-p4":0.0037,"2.4.4-p5":0.004,"2.4.4-p6":0.0043,"2.4.4-p7":0.0039,"2.4.4-p8":0.0058,"2.4.4-p9":0.0042,"2.4.5":0.0148,"2.4.5-p1":0.0086,"2.4.5-p10":0.007,"2.4.5-p11":0.0099,"2.4.5-p12":0.0092,"2.4.5-p13":0.0075,"2.4.5-p14":0.0074,"2.4.5-p15":0.0068,"2.4.5-p16":0.0076,"2.4.5-p17":0.0077,"2.4.5-p2":0.0033,"2.4.5-p3":0.0053,"2.4.5-p4":0.0046,"2.4.5-p5":0.005,"2.4.5-p6":0.006,"2.4.5-p7":0.0062,"2.4.5-p8":0.0056,"2.4.5-p9":0.0047,"2.4.6":0.034,"2.4.6-p1":0.023,"2.4.6-p10":0.0107,"2.4.6-p11":0.0143,"2.4.6-p12":0.0139,"2.4.6-p13":0.0116,"2.4.6-p14":0.0114,"2.4.6-p15":0.0092,"2.4.6-p2":0.0039,"2.4.6-p3":0.0079,"2.4.6-p4":0.0087,"2.4.6-p5":0.0071,"2.4.6-p6":0.0092,"2.4.6-p7":0.0074,"2.4.6-p8":0.0065,"2.4.6-p9":0.0063,"2.4.7":0.0217,"2.4.7-p1":0.0149,"2.4.7-p10":0.0103,"2.4.7-p2":0.0075,"2.4.7-p3":0.0119,"2.4.7-p4":0.0159,"2.4.7-p5":0.014,"2.4.7-p6":0.0136,"2.4.7-p7":0.0125,"2.4.7-p8":0.0094,"2.4.7-p9":0.0069,"2.4.8":0.0224,"2.4.8-p1":0.0192,"2.4.8-p2":0.0204,"2.4.8-p3":0.0178,"2.4.8-p4":0.0166,"2.4.8-p5":0.0141,"2.4.9":0.0199,"unspecified":0.2489},"confidence":0.0601},"backportWorthy":{"score":1.5737,"probabilities":{"0":0.0958,"1":0.2346,"2":0.6696},"confidence":0.2688}},"curated":{"title":"Fixes queue consumer max-messages ignoring a higher value set per queue","description":"When a queue sets max-messages in queue_consumer.xml above the default, the cron ConsumersRunner still starts queue:consumers:start with the lower default, because the logic applies min(). ConsumersRunner now passes the queue-specific value and logs a warning when it exceeds the configured default.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.8-p5":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:20:14.325Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:20:14.325Z"}}},"2.4.7-p10":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:29:25.394Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:29:25.394Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-40110 details"}