Skip to content
Snippets Groups Projects
Commit 8084b109 authored by Timo Birr's avatar Timo Birr :rage:
Browse files

Temporary fix until RobotAPI SkillManager stopallskills is merged

parent 62ddc559
No related branches found
No related tags found
No related merge requests found
Pipeline #22007 passed
......@@ -313,6 +313,27 @@ class SkillManager:
blocking=True,
log=None,
) -> ty.Dict[sei.SkillExecutionID, asr.AbortSkillResult]:
# temporary fix until RobotAPI is merged
execution_ids_to_abort = list()
execution_status_map = self.get_skill_execution_statuses()
for execution_id, execution_status in execution_status_map.items():
if execution_status.status in abort_statuses:
log.info(f"{execution_id} RUNNING")
execution_ids_to_abort.append(execution_id)
else:
log.info(f"{execution_id} not running")
results = dict()
for execution_id in execution_ids_to_abort:
if log is not None:
log.info(f"Aborting skill execution {execution_id} ...")
result = self.abort_skill(skill_execution_id=execution_id, blocking=blocking)
results[execution_id] = result
return results
return self.proxy.abortAllSkills()
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment