mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 20:08:09 +00:00
send NodeCommandStopIfFree on node shutdown (#940)
If we move to shutdown a single node but it's not doing work, it will wait until it picks up work to shutdown. This shortcuts that.
This commit is contained in:
@ -381,6 +381,7 @@ class Node(BASE_NODE, ORMMixin):
|
||||
logging.info("setting delete_requested: %s", self.machine_id)
|
||||
self.delete_requested = True
|
||||
self.save()
|
||||
self.send_stop_if_free()
|
||||
|
||||
def set_halt(self) -> None:
|
||||
"""Tell the node to stop everything."""
|
||||
|
Reference in New Issue
Block a user