Various Python code cleanups. (#3837)

This commit is contained in:
Si-Yuan
2019-02-03 10:16:24 -08:00
committed by Robert Nishihara
parent a1bcd2a4f5
commit 9295ab8f60
12 changed files with 177 additions and 261 deletions
-2
View File
@@ -239,7 +239,6 @@ class Monitor(object):
data = message["data"]
# Determine the appropriate message handler.
message_handler = None
if channel == ray.gcs_utils.XRAY_HEARTBEAT_BATCH_CHANNEL:
# Similar functionality as local scheduler info channel
message_handler = self.xray_heartbeat_batch_handler
@@ -250,7 +249,6 @@ class Monitor(object):
raise Exception("This code should be unreachable.")
# Call the handler.
assert (message_handler is not None)
message_handler(channel, data)
def update_local_scheduler_map(self):