Add StopIfFree node command to tell free nodes to stop asking for new work (#866)

This commit is contained in:
bmc-msft
2021-05-07 13:55:50 -04:00
committed by GitHub
parent eba6fa4456
commit 221a3316a1
9 changed files with 71 additions and 2 deletions

View File

@ -557,6 +557,10 @@ class NodeHeartbeatEntry(BaseModel):
data: List[Dict[str, HeartbeatType]]
class NodeCommandStopIfFree(BaseModel):
pass
class StopNodeCommand(BaseModel):
pass
@ -573,6 +577,7 @@ class NodeCommand(EnumModel):
stop: Optional[StopNodeCommand]
stop_task: Optional[StopTaskNodeCommand]
add_ssh_key: Optional[NodeCommandAddSshKey]
stop_if_free: Optional[NodeCommandStopIfFree]
class NodeCommandEnvelope(BaseModel):