Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/base_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def _estimateDuration(self, command: message.Message) -> tuple[Optional[int], t.
method_name = f"Estimate{command.__class__.__name__}"
try:
method = getattr(self, method_name)
except AttributeError as e:
logging.error(str(e))
return None, tool_base_pb2.UNRECOGNIZED_COMMAND
except AttributeError:
# No estimate method defined for this command, use default duration
return 0, None

return method(command), None

Expand Down
4 changes: 2 additions & 2 deletions tools/bravo/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ def run_op(driver: BravoDriver) -> None:
self._execute_with_retry("RunRunset", run_op)

def EstimateRunProtocol(self, params: Command.RunProtocol) -> int:
return 60 # Return a more realistic estimate in seconds
return 1 # Quick return in simulation mode

def EstimateRunRunset(self, params: Command.RunRunset) -> int:
return 120 # Return a more realistic estimate in seconds
return 1 # Quick return in simulation mode


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion tools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

# Version information
__version__ = '0.19.9' # Update this version string as needed
__version__ = '0.19.10' # Update this version string as needed

# Parse version components for easier access
VERSION_PARTS = __version__.split('.')
Expand Down
6 changes: 3 additions & 3 deletions tools/vprep/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ def run_op(driver: VPrepDriver) -> None:
self._execute_with_retry("RunRunset", run_op)

def EstimateRunProtocol(self, params: Command.RunProtocol) -> int:
return 60 # Return a more realistic estimate in seconds
return 1 # Quick return in simulation mode

def EstimateRunRunset(self, params: Command.RunRunset) -> int:
return 120 # Return a more realistic estimate in seconds
return 1 # Quick return in simulation mode

if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
Expand Down