mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 20:58:06 +00:00
Add StopIfFree node command to tell free nodes to stop asking for new work (#866)
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user