From 7c6a1ae638152e3d6737f3f88bcfa04e8f51b8bb Mon Sep 17 00:00:00 2001 From: KUMAR SHIKHAR Date: Wed, 11 Dec 2024 11:18:07 +0530 Subject: [PATCH] fix(device): fix timeout interval --- rapyuta_io/clients/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapyuta_io/clients/device.py b/rapyuta_io/clients/device.py index a008f13..74c17cb 100644 --- a/rapyuta_io/clients/device.py +++ b/rapyuta_io/clients/device.py @@ -605,7 +605,7 @@ def fetch_command_result(self, jid: str, deviceids: list, timeout: int, interval result = get_api_response_data(response) return result[deviceids[0]] sleep(wait_interval) - total_time_waited += wait_interval + time_elapsed += wait_interval raise TimeoutError(f"Command result not available after {timeout} seconds") def get_config_variables(self):