Skip to content

Commit

Permalink
fix(api): increase pipette detection timeout (#12916)
Browse files Browse the repository at this point in the history
We have a timeout for getting the pipette info response during tool
attach, and it was too short, breaking the pipette attach process. By
increasing the timeout we fix the issue.

Closes RQA-961
  • Loading branch information
sfoster1 authored Jun 14, 2023
1 parent 8403afb commit c48c327
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ async def _tool_detection_task_protected(self) -> None:
right=self._tool_if_ok(update.right, NodeId.pipette_right),
gripper=self._tool_if_ok(update.gripper, NodeId.gripper),
)
self._present_tools = await self._tool_detector.resolve(to_resolve)
self._present_tools = await self._tool_detector.resolve(to_resolve, 5.0)
log.info(f"Present tools are now {self._present_tools}")
async with self._tool_task_condition:
self._tool_task_state = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ async def add_resolution(
else ToolType.nothing_attached,
)

self._decoy.when(await self._tool_detector.resolve(arg)).then_return(summary)
self._decoy.when(await self._tool_detector.resolve(arg, 5.0)).then_return(
summary
)
return summary


Expand Down

0 comments on commit c48c327

Please sign in to comment.