From b4ef969eecebc66fc1596c9ec96d7cc8a3809e98 Mon Sep 17 00:00:00 2001 From: Douglas Viroel Date: Tue, 13 May 2025 14:03:57 -0300 Subject: [PATCH] Remove deprecated executor in message handling servers Removes the deprecated message executor when creating both RPC and notification server instances. This parameter is deprecated[1], as well eventlet option. When not defined, the server will get the one that fits better the current context (monkey patched or not)[2] [1] https://github.com/openstack/oslo.messaging/commit/27d833e374947cfb5489ad7e6b32fd0fbaa2f250 [2] https://github.com/openstack/oslo.messaging/blob/412ab4de9244d99903b7ada7a60ef19156cd8451/oslo_messaging/_utils.py#L87 Change-Id: I784407aa7db10bddcec5dc663e1cec65174631e0 --- watcher/common/rpc.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/watcher/common/rpc.py b/watcher/common/rpc.py index 6e13b124c..1b8fa7f8c 100644 --- a/watcher/common/rpc.py +++ b/watcher/common/rpc.py @@ -137,7 +137,6 @@ def get_server(target, endpoints, serializer=None): TRANSPORT, target, endpoints, - executor='eventlet', serializer=serializer, access_policy=access_policy ) @@ -151,7 +150,6 @@ def get_notification_listener(targets, endpoints, serializer=None, pool=None): targets, endpoints, allow_requeue=False, - executor='eventlet', pool=pool, serializer=serializer )