[openstack-dev] Should RPC consume_in_thread() be more fault tolerant?

Ray Pekowski pekowski at gmail.com
Sun Jun 9 19:23:02 UTC 2013


On Sat, Jun 8, 2013 at 8:13 AM, Ray Pekowski <pekowski at gmail.com> wrote:

>
> On Sat, Jun 8, 2013 at 12:13 AM, Ray Pekowski <pekowski at gmail.com> wrote:
>
>> Here is the first patch set for AMQP based RPCs:
>>
>> I0d6ec8a5: Make AMQP based RPC consumer threads more robust
>>
>> https://review.openstack.org/#/c/32235/1
>>
>
> I have an idea.  Maybe this code should be implemented as a decorator, for
> example calling it robust_thread.  At least that would make it common
> between kombu and qpid code.  Maybe zmq could use it.  Perhaps other
> components have a similar situation whereby it would be good to restart
> crashed threads in a controlled manner.
>

Just submitted patch set 2 which uses a decorator:
https://review.openstack.org/#/c/32235/1
Any preferences or comments on how it is implemented?

Ray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130609/fe4ee322/attachment.html>


More information about the OpenStack-dev mailing list