stable

Clone or download

Read-only

Have a central worker that can process tracker emails

Introduce the central background worker to process RabbitMQ events In this first patch, it's really about making it runnable while (already) legacy notifier is still in charge. How to test: - in an already rabbitmq aware configuration - connect as codendiadm on your dev instance and manually launch the worker /usr/share/tuleap/src/utils/worker.php -v - then when you update artifacts with notification you should observe that events are consumed either by notify.php or worker.php (you might need to do "mass change" to generate enough notification events) Part of request #10967 Allow to have several workers to consume email to send Change-Id: Ifa78a2d273548073eae52db6362d72c927766d35

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Changeset/Notification/AsynchronousNotifier.php +34 −20 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +8 −0 Go to diff View file
M src/common/Queue/Factory.php +1 −1 Go to diff View file
A src/common/Queue/RabbitMQ/ExchangeToExchangeBindings.php +90 −0 Go to diff View file
M src/common/Queue/RabbitMQ/PersistentQueue.php +15 −80 Go to diff View file
A src/common/Queue/RabbitMQ/RabbitMQManager.php +79 −0 Go to diff View file
A src/common/Queue/Worker.php +203 −0 Go to diff View file
A src/common/Queue/WorkerGetQueue.php +68 −0 Go to diff View file
M src/common/autoload.php +6 −2 Go to diff View file
M src/etc/logrotate.syslog.dist +8 −1 Go to diff View file
A src/utils/worker.php +26 −0 Go to diff View file