Skip to content

Commit

Permalink
fix(device): fix timeout interval
Browse files Browse the repository at this point in the history
  • Loading branch information
rrkumarshikhar committed Dec 11, 2024
1 parent 928147d commit 7c6a1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rapyuta_io/clients/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7c6a1ae

Please sign in to comment.