2011-03-24 04:24:06 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class RabbitMqPlugin extends Zend_Controller_Plugin_Abstract
|
|
|
|
{
|
|
|
|
public function dispatchLoopShutdown()
|
|
|
|
{
|
2011-09-26 21:19:04 +02:00
|
|
|
if (Application_Model_RabbitMq::$doPush) {
|
2024-04-27 20:09:16 +02:00
|
|
|
// 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', []);
|
2011-08-12 21:36:00 +02:00
|
|
|
}
|
2012-08-22 20:01:44 +02:00
|
|
|
|
Feature: Support php7.4 (#1354)
* Run CI tests against php 7.4
* Sort composer dependencies
* Remove unused Aws S3 php library
* Pin simplepie dependency to ^1.5
* Pin getid3 dependency to ^1.9
* Pin composer semver to ^3.2
* Pin php-amqplib to ^2.12
* Drop sentry logging support
* Update composer dependencies
* Move propel regenerate to Makefile
* Regenerate propel files with v1.7.0
* Pin propel orm to ^1.7
* Regenerate propel files with v1.7.2
* fix: generator_version in airtime-conf-production.php
* Replace propel/propel1 with jooola/propel1
* Regenerate propel files with v1.7.3-dev
* Fix php7.4 compatibility
Using php-cs-fixer:
'@PhpCsFixer' => true,
'concat_space' => ['spacing' => 'one'],
'ordered_class_elements' => false,
'yoda_style' => false,
'@PHP74Migration' => true,
'assign_null_coalescing_to_coalesce_equal' => false,
'ternary_to_null_coalescing' => false,
'heredoc_indentation' => false,
'@PHP74Migration:risky' => true,
'declare_strict_types' => false,
'void_return' => false,
'use_arrow_functions' => false,
* Fix pre-commit
2021-10-17 17:19:53 +02:00
|
|
|
if (memory_get_peak_usage() > 30 * 2 ** 20) {
|
2021-10-11 16:10:47 +02:00
|
|
|
Logging::debug('Peak memory usage: '
|
|
|
|
. (memory_get_peak_usage() / 1000000)
|
|
|
|
. ' MB while accessing URI ' . $_SERVER['REQUEST_URI']);
|
|
|
|
Logging::debug('Should try to keep memory footprint under 25 MB');
|
2012-08-22 20:01:44 +02:00
|
|
|
}
|
2011-03-24 04:24:06 +01:00
|
|
|
}
|
2011-09-13 20:56:24 +02:00
|
|
|
}
|