CC-2750: Ability to query health status for pypo,
liquidsoap, media monitor, and recorder -fixed rabbitmq not delivering messages
This commit is contained in:
parent
d942e476c6
commit
2c2bb86698
4 changed files with 32 additions and 22 deletions
|
@ -7,6 +7,7 @@ class RabbitMqPlugin extends Zend_Controller_Plugin_Abstract
|
|||
if (RabbitMq::$doPush) {
|
||||
$md = array('schedule' => Schedule::GetScheduledPlaylists());
|
||||
RabbitMq::SendMessageToPypo("update_schedule", $md);
|
||||
RabbitMq::SendMessageToShowRecorder("update_schedule");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,8 +34,6 @@ class RabbitMq
|
|||
$channel->basic_publish($msg, $EXCHANGE);
|
||||
$channel->close();
|
||||
$conn->close();
|
||||
|
||||
self::SendMessageToShowRecorder("update_schedule");
|
||||
}
|
||||
|
||||
public static function SendMessageToMediaMonitor($event_type, $md)
|
||||
|
|
|
@ -4,6 +4,9 @@ class Application_Model_Systemstatus
|
|||
{
|
||||
|
||||
public static function GetPypoStatus(){
|
||||
|
||||
RabbitMq::SendMessageToPypo("get_status", array());
|
||||
|
||||
return array(
|
||||
"process_id"=>500,
|
||||
"uptime_seconds"=>3600
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue