Integration tests reliability fixes (#1505)

* only reimage nodes that are in the done state

* ignore done message when the node is deleted

* log warning instead of error when receiving a heartbeat from a deleted node
This commit is contained in:
Cheick Keita
2021-12-03 10:08:30 -08:00
committed by GitHub
parent d8fd5d5ce5
commit 08691c007f
4 changed files with 13 additions and 4 deletions

View File

@ -46,6 +46,12 @@ def on_state_update(
state = state_update.state
node = get_node(machine_id)
if isinstance(node, Error):
if state == NodeState.done:
logging.warning(
"unable to process state update event. machine_id:"
f"{machine_id} state event:{state_update} error:{node}"
)
return None
return node
if state == NodeState.free: