diff --git a/aikido_zen/background_process/commands/__init__.py b/aikido_zen/background_process/commands/__init__.py index a643d3ed..12fc955d 100644 --- a/aikido_zen/background_process/commands/__init__.py +++ b/aikido_zen/background_process/commands/__init__.py @@ -5,8 +5,6 @@ from .read_property import process_read_property from .user import process_user from .should_ratelimit import process_should_ratelimit -from .kill import process_kill -from .statistics import process_statistics from .ping import process_ping from .sync_data import process_sync_data @@ -15,8 +13,6 @@ # Commands that don't return data : "ATTACK": (process_attack, False), "USER": (process_user, False), - "KILL": (process_kill, False), - "STATISTICS": (process_statistics, False), # Commands that return data : "SYNC_DATA": (process_sync_data, True), "READ_PROPERTY": (process_read_property, True), diff --git a/aikido_zen/background_process/commands/kill.py b/aikido_zen/background_process/commands/kill.py deleted file mode 100644 index 152474a4..00000000 --- a/aikido_zen/background_process/commands/kill.py +++ /dev/null @@ -1,10 +0,0 @@ -"""exports `process_kill`""" - -import sys -from aikido_zen.helpers.logging import logger - - -def process_kill(connection_manager, data, queue=None): - """when main process quits , or during testing etc""" - logger.info("Killing background process") - sys.exit(0) diff --git a/aikido_zen/background_process/commands/statistics.py b/aikido_zen/background_process/commands/statistics.py deleted file mode 100644 index 00c29d88..00000000 --- a/aikido_zen/background_process/commands/statistics.py +++ /dev/null @@ -1,13 +0,0 @@ -"""Exports `process_statistics` function""" - - -def process_statistics(connection_manager, data, queue=None): - """Changes statistics""" - if not connection_manager or not connection_manager.statistics: - return - stats = connection_manager.statistics - - if data["action"] == "aborted_request": - stats.requests["aborted"] += 1 - elif data["action"] == "request": - stats.requests["total"] += 1