Add queue:config:status for message queue topology sync detection - #41254
Add queue:config:status for message queue topology sync detection#41254ajith107 wants to merge 1 commit into
Conversation
Deploy tooling that relies on setup:db:status misses message-queue topology changes applied only during setup:upgrade. Add a dedicated status command and share missing-queue detection with MysqlMq recurring setup. Fixes magento#38225
|
Hi @ajith107. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
|
@ajith107 your The two are independent — #41256 does not touch |
Summary
queue:config:status(exit code 2 whensetup:upgradeis required) without changingsetup:db:status, per maintainer feedback on Message Queue Changes Tracking insetup:db:statusCommand #39698.Topology\ConfigInterface::getQueues()to the MySQLqueuetable using missing-onlyarray_diff(legacy DB rows ignored).Magento\MysqlMq\Setup\Recurringto share the same synchronizer so status and upgrade stay aligned.Related
setup:db:statuscheck #38225setup:db:statusCommand #39698 (new approach: separate command; topology source; missing-only diff)Manual testing scenarios
bin/magento setup:upgradethenbin/magento queue:config:status→ exit 0queue_topology.xmlbin/magento cache:flushthenbin/magento queue:config:status→ exit 2, lists missing queuebin/magento setup:db:statusstill exit 0 (by design)bin/magento setup:upgradethenqueue:config:status→ exit 0Test plan
Notes for deploy tooling
Call
queue:config:statusin addition tosetup:db:statuswhen deciding whether to runsetup:upgrade.