CC-2096 Schedule changes should be sent to RabbitMQ at most once per user request
Implemented as a plugin to Zend. Now at most one schedule push to RabbitMQ will happen per user action. It's pretty sweet.
This commit is contained in:
parent
50432c0b66
commit
f9c8a7cc11
3 changed files with 47 additions and 23 deletions
9
application/controllers/plugins/RabbitMqPlugin.php
Normal file
9
application/controllers/plugins/RabbitMqPlugin.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
class RabbitMqPlugin extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
public function dispatchLoopShutdown()
|
||||
{
|
||||
RabbitMq::PushScheduleFinal();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue