From 67956358bd802ea65ddb901223a92446948f60b5 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 23 Sep 2022 14:11:57 +0200 Subject: [PATCH] Agent: Remove shoudl_agent_stop from IIslandAPIClient --- .../island_api_client/i_island_api_client.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/monkey/infection_monkey/island_api_client/i_island_api_client.py b/monkey/infection_monkey/island_api_client/i_island_api_client.py index 025261e06..34348aeef 100644 --- a/monkey/infection_monkey/island_api_client/i_island_api_client.py +++ b/monkey/infection_monkey/island_api_client/i_island_api_client.py @@ -108,19 +108,6 @@ class IIslandAPIClient(ABC): :raises IslandAPITimeoutError: If the command timed out """ - @abstractmethod - def should_agent_stop(self, agent_id: str) -> bool: - """ - Check with the island to see if the agent should stop - - :param agent_id: The agent identifier for the agent to check - :raises IslandAPIConnectionError: If the client could not connect to the island - :raises IslandAPIRequestError: If there was a problem with the client request - :raises IslandAPIRequestFailedError: If the server experienced an error - :raises IslandAPITimeoutError: If the command timed out - :return: True if the agent should stop, otherwise False - """ - @abstractmethod def get_config(self) -> AgentConfiguration: """