Skip to content

fix: update command execution in devices #111

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

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

guptadev21
Copy link
Member

@guptadev21 guptadev21 commented May 7, 2025

This PR introduces a new run_async flag in the Command class to enhance command execution behavior.

  • The existing bg flag is now strictly used to run commands in the background. When used, it will return only SUCCESS, regardless of whether the command fails on the device. It will not return a job ID (jid).

  • The new run_async flag allows commands to be executed asynchronously. When set, the command will be sent to the device, and a jid will be returned immediately. We won’t wait for the command to complete; instead, the system will poll every 30 seconds to check the command's status.

resolves https://github.com/rapyuta-robotics/rapyuta_io/issues/820

@guptadev21 guptadev21 self-assigned this May 7, 2025
@guptadev21 guptadev21 requested review from a team as code owners May 7, 2025 02:02
@guptadev21 guptadev21 force-pushed the fix/piping-tunnel branch from 11f2f19 to 567f47d Compare May 7, 2025 07:50
@guptadev21 guptadev21 force-pushed the fix/piping-tunnel branch from c743b8f to f8d140e Compare May 19, 2025 00:56
Copy link
Member

@ankitrgadiya ankitrgadiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, rebase the commits into one and use the fix prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants