mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 11:58:09 +00:00
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:
@ -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:
|
||||
|
Reference in New Issue
Block a user