X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/66c13b6055a363cb08197b8c5d040ed9a511c8ca..7b5729d984a9c516920270250f050bf72f1896d1:/services/nodemanager/arvnodeman/nodelist.py diff --git a/services/nodemanager/arvnodeman/nodelist.py b/services/nodemanager/arvnodeman/nodelist.py index 7ddfb7ca33..83dd93f077 100644 --- a/services/nodemanager/arvnodeman/nodelist.py +++ b/services/nodemanager/arvnodeman/nodelist.py @@ -11,10 +11,11 @@ class ArvadosNodeListMonitorActor(clientactor.RemotePollLoopActor): This actor regularly polls the list of Arvados node records, and sends it to subscribers. """ - - CLIENT_ERRORS = config.ARVADOS_ERRORS LOGGER_NAME = 'arvnodeman.arvados_nodes' + def is_common_error(self, exception): + return isinstance(exception, config.ARVADOS_ERRORS) + def _item_key(self, node): return node['uuid'] @@ -28,10 +29,11 @@ class CloudNodeListMonitorActor(clientactor.RemotePollLoopActor): This actor regularly polls the cloud to get a list of running compute nodes, and sends it to subscribers. """ - - CLIENT_ERRORS = config.CLOUD_ERRORS LOGGER_NAME = 'arvnodeman.cloud_nodes' + def is_common_error(self, exception): + return self._client.is_cloud_exception(exception) + def _item_key(self, node): return node.id