Skip to content
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

Add default timeout to CancelSlaves #40

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
add default timeout of 10 for CancelSlaves command
  • Loading branch information
justin.schaare committed May 22, 2024
commit f2f3e77066618984472cd1c6850e4d9e60592de9
2 changes: 1 addition & 1 deletion python/mujinplanningclient/planningclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def TerminateSlaves(self, slaverequestids, timeout=None, fireandforget=None, che
"""
return self.SendConfig({'command':'TerminateSlaves', 'slaverequestids':slaverequestids}, timeout=timeout, fireandforget=fireandforget, checkpreempt=checkpreempt)

def CancelSlaves(self, slaverequestids, timeout=None, fireandforget=None, checkpreempt=True):
def CancelSlaves(self, slaverequestids, timeout=10, fireandforget=None, checkpreempt=True):
"""cancel the current commands on the slaves with specific slaverequestids
"""
return self.SendConfig({'command':'cancel', 'slaverequestids':slaverequestids}, timeout=timeout, fireandforget=fireandforget, checkpreempt=checkpreempt)
Expand Down