Baldinof / roadrunner-bundle

A RoadRunner worker integrated in your Symfony app
MIT License
255 stars 46 forks source link

RPC Service in Console App #112

Closed webspec2012 closed 1 year ago

webspec2012 commented 1 year ago

Good afternoon!

I use Symfony in conjunction with Baldinof/roadrunner-bundle.

Now I'm trying to integrate metrics through the Metric Interface, and I ran into the problem that I can't use it in conjunction with a console application. If the Metric Interface is used not inside the web application controller, but inside the service, and it is called from the console application, then an error occurs:

` d5d13cc4ddb6:/var/www/app$ php bin/console app:send-sms:test

In BadConfigurationException.php line 11:
The RoadRunner plugin 'rpc' is disabled, try to add a rpc section to the configuration file. `

Can you tell me how I can configure it correctly?

webspec2012 commented 1 year ago
.env

RR_RPC=tcp://127.0.0.1:6001