From e7611d6df9948ccc98a628fcf6ae77ed926ffcd7 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Sun, 18 Dec 2022 02:00:18 +0000 Subject: [PATCH] Service component: - added close to pathcomp compute request to enforce load balancing of requests --- src/service/service/ServiceServiceServicerImpl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/service/service/ServiceServiceServicerImpl.py b/src/service/service/ServiceServiceServicerImpl.py index 6ce549666..bf1520270 100644 --- a/src/service/service/ServiceServiceServicerImpl.py +++ b/src/service/service/ServiceServiceServicerImpl.py @@ -116,9 +116,10 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): else: pathcomp_request.k_disjoint_path.num_disjoint = num_disjoint_paths - pathcomp = PathCompClient() LOGGER.info('pathcomp_request={:s}'.format(grpc_message_to_json_string(pathcomp_request))) + pathcomp = PathCompClient() pathcomp_reply = pathcomp.Compute(pathcomp_request) + pathcomp.close() LOGGER.info('pathcomp_reply={:s}'.format(grpc_message_to_json_string(pathcomp_reply))) # Feed TaskScheduler with this path computation reply. TaskScheduler identifies inter-dependencies among -- GitLab