X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2e919859109fe27d552b81b13d47aed61e80eca6..e0f940ec72a9ed000185196f8d01419302b3cb59:/services/nodemanager/arvnodeman/computenode/__init__.py diff --git a/services/nodemanager/arvnodeman/computenode/__init__.py b/services/nodemanager/arvnodeman/computenode/__init__.py index e7bd7bf7bd..6e46bc0f4c 100644 --- a/services/nodemanager/arvnodeman/computenode/__init__.py +++ b/services/nodemanager/arvnodeman/computenode/__init__.py @@ -31,6 +31,13 @@ def timestamp_fresh(timestamp, fresh_time): return (time.time() - timestamp) < fresh_time def arvados_node_missing(arvados_node, fresh_time): + """Indicate if cloud node corresponding to the arvados + node is "missing". + + If True, this means the node has not pinged the API server within the timeout + period. If False, the ping is up to date. If the node has never pinged, + returns None. + """ if arvados_node["last_ping_at"] is None: return None else: