Sorry, that's not supported by Python yet. We do have an ongoing work on 
EventEngine API (https://github.com/grpc/proposal/pull/245) that can cover 
this functionality in future.

On the other hand, you are free to spawn your threads with the Python 
thread pool, the gRPC channel is safe to be used in multiple threads.


On Tuesday, December 28, 2021 at 8:51:35 AM UTC-8 Deepu Varma wrote:

> Hii I have created grpc channel with host and load balancer here.
>
> 1)created channel
> self.channel = grpc.insecure_channel(
> self.host, options=[("grpc.lb_policy_name", "round_robin")]
> )
>
> 2)created stub
> self.blocking_stub = policy_pb2_grpc.ServiceStub(self.channel)
>
> and I have used this stub along with metadata and timeout with request 
> to call the service 
>
> My question here is how can I add executor with custom threads from 
> client side ?
>
> I have seen java code to use custom executor but how can we do in python ?
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/d8e03c8b-568d-4baa-ab19-3c1aeff88663n%40googlegroups.com.

Reply via email to