-
-
Notifications
You must be signed in to change notification settings - Fork 291
AMQP keepalive support #372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
https://travis-ci.com/github/yiisoft/yii2-queue/jobs/300286412 that's interesting... likely not related to pull request but can't merge without this error fixed :( |
3853dde
to
b8950e4
Compare
Any idea about these random failures? |
acaca1d
to
14a79d5
Compare
Works? Ready for review? |
Тесты рандомно падают на проверке работы приоритетов для драйвера rabbitmq, если rabbitmq запущен через докер. Если запустить rabbitmq через раздел services, возникает другая проблема - rabbitmq не установлен в образе ubuntu xenial и поддержка travis говорит, что его нужно устанавливать вручную в этом образе. php 5.5 нет в образе ubuntu xenial, придется использовать для тестирования образ trusty. Раздел before_install для xenial и trusty получается разный. Путем проб и ошибок самый простой вариант - это использовать для всех тестов дистрибутив trusty плюсы:
минусы:
|
готово |
14a79d5
to
14330ac
Compare
composer.json
Outdated
@@ -23,7 +23,7 @@ | |||
"require-dev": { | |||
"yiisoft/yii2-redis": "*", | |||
"php-amqplib/php-amqplib": "*", | |||
"enqueue/amqp-lib": "^0.8||^0.9.10", | |||
"enqueue/amqp-lib": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's kind of unsafe default since it will update to major versions without us knowing that. Is it possible to specify a range explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нормально встают все зависимости только при наличии enqueue/amqp-lib версии 0.8.* Версии enqueue/amqp-lib 0.9.* или 0.10.* начинают конфликтовать с ограничениями для "enqueue/stomp": "^0.8.39"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Конфликт на уровне composer или прямо в коде?
Overall everything's well done 👍 Let's fix minor phpdoc issues and version constraint. Then I'll merge it. |
How about merge it? =) |
Need to resolve conflicts first. Travis was replaced by Github Actions so adaptation for these changes is required. |
Came across the same problem. Can this PR be updated? |
…QP and AMQP interop
Если перед кластером rabbitmq стоит балансер (у нас это yandex cloud load balancer) то периодически consumers завершались с ошибкой "Connection timed out". Активация heartbeat режима, без переписывания обработчиков не поможет php-amqplib/RabbitMqBundle#301
Нам помогло включение режима keepalive на стороне consumers.
Для возможности включения режима keepalive через конфиг и был создан данный PR