feat: build schedule events exclusively in playout (#2946)
### Description Build and use the schedule events only in playout, the events generated by legacy are not used anymore. This ensure that we don't have to maintain 2 different implementation in 2 different languages. We still need the php function to run to make sure the side effects of this function are executed (filling the schedule in the DB).
This commit is contained in:
parent
c02502ad9d
commit
40b4fc7f66
5 changed files with 14 additions and 18 deletions
|
@ -5,8 +5,10 @@ class RabbitMqPlugin extends Zend_Controller_Plugin_Abstract
|
|||
public function dispatchLoopShutdown()
|
||||
{
|
||||
if (Application_Model_RabbitMq::$doPush) {
|
||||
$md = ['schedule' => Application_Model_Schedule::getSchedule()];
|
||||
Application_Model_RabbitMq::SendMessageToPypo('update_schedule', $md);
|
||||
// The side effects of this function are still required to fill the schedule, we
|
||||
// don't use the returned schedule.
|
||||
Application_Model_Schedule::getSchedule();
|
||||
Application_Model_RabbitMq::SendMessageToPypo('update_schedule', []);
|
||||
}
|
||||
|
||||
if (memory_get_peak_usage() > 30 * 2 ** 20) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue