Describe the bug
Sometimes missions get stuck in ongoing/paused in flotilla while robot status is available. The missions cannot be cancelled and will never complete as isar is idle and not running any mission.
Suspected cause of this happening is:
Loss of communication as the mission gets completed such that flotilla doesn't get the message about the tasks and the mission getting completed
Restarted isar pod such that isar no longer has the mission and therefor no "mission completed" or "task updated"-messages will get sent to flotilla
In both these cases isar will be idle while flotilla has ongoing/paused mission.
Suggested solution is to update mission status in flotilla to completed if isar status changes to idle. The tasks where the status is unknown/not updated should either be set to failed or not started.
To Reproduce
Restart isar during mission to reproduce the case where flotilla has a mission that isar doesn't have.
Expected behavior
If isar isn't running a mission then the corresponding robot shouldn't have any ongoing missions in flotilla.
Screenshots
Ongoing mission in flotilla that cannot be started or stopped. Robot is available
Describe the bug Sometimes missions get stuck in ongoing/paused in flotilla while robot status is available. The missions cannot be cancelled and will never complete as isar is idle and not running any mission.
Suspected cause of this happening is:
In both these cases isar will be idle while flotilla has ongoing/paused mission.
Suggested solution is to update mission status in flotilla to completed if isar status changes to idle. The tasks where the status is unknown/not updated should either be set to failed or not started.
To Reproduce Restart isar during mission to reproduce the case where flotilla has a mission that isar doesn't have.
Expected behavior If isar isn't running a mission then the corresponding robot shouldn't have any ongoing missions in flotilla.
Screenshots Ongoing mission in flotilla that cannot be started or stopped. Robot is available