Skip to content

Commit

Permalink
Fix stepwise task reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Aug 9, 2024
1 parent 9c453f9 commit d34d2de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/isar/state_machine/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def _mission_started(self) -> None:

def _step_finished(self) -> None:
self.publish_step_status(step=self.current_step)
self.current_task.update_task_status()
self.publish_task_status(task=self.current_task)
self.iterate_current_task()
self.iterate_current_step()

Expand Down Expand Up @@ -379,6 +381,8 @@ def _initiate_infeasible(self) -> None:
if self.stepwise_mission:
self.current_step.status = StepStatus.Failed
self.publish_step_status(step=self.current_step)
self.current_task.update_task_status()
self.publish_task_status(task=self.current_task)
self.iterate_current_task()
self.iterate_current_step()

Expand Down

0 comments on commit d34d2de

Please sign in to comment.