-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSDK-9798 - ensure machine status is ready #831
base: main
Are you sure you want to change the base?
Changes from 7 commits
0fb1500
206b17d
dedf354
2e6f012
01058e5
793fa3e
2ef1ce9
51dea8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
from viam.errors import ViamGRPCError | ||
from viam.proto.common import ResourceName | ||
from viam.proto.robot import ( | ||
GetMachineStatusRequest, | ||
GetMachineStatusResponse, | ||
ResourceNamesRequest, | ||
ResourceNamesResponse, | ||
StopAllRequest, | ||
|
@@ -33,6 +35,11 @@ def _generate_metadata(self) -> List[ResourceName]: | |
|
||
return list(md) | ||
|
||
async def GetMachineStatus(self, stream: Stream[GetMachineStatusRequest, GetMachineStatusResponse]) -> None: | ||
request = await stream.recv_message() | ||
assert request is not None | ||
await stream.send_message(GetMachineStatusResponse(state=GetMachineStatusResponse.STATE_RUNNING)) | ||
Comment on lines
+38
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wanted to flag this, for the purposes of the documentation tests we need the service to have a |
||
|
||
async def ResourceNames(self, stream: Stream[ResourceNamesRequest, ResourceNamesResponse]) -> None: | ||
request = await stream.recv_message() | ||
assert request is not None | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has gone from being an important thing to a flyby. I still think that there's value abstractly in being able to call
refresh
from within a process that already has the lock so I'm leaving this, but I don't feel strongly and am happy to undo if others do.