Split initiate mission into prepare mission and start mission#936
Split initiate mission into prepare mission and start mission#936LeikvollE wants to merge 1 commit intoequinor:mainfrom
Conversation
98928b2 to
44dbafe
Compare
44dbafe to
e9a0f7a
Compare
|
I agree with the general changes in the PR. There's a lot of comments mainly since I want to address the use of the global scoped Event variables which can be replaced by events passed by the parent thread. This is safer since this forces the parent thread to only report the output of the threads when they are done, which prevents timing problems where we are not sure if a thread has exited by the time we create another one. |
Agreed, I think that is a good change. It should be doable for all the threads except when cancelling the prepare mission thread. To achieve this we would need to be able to cancel the prepare attempt quite quickly and that is currently not implemented |
5e87451 to
762ac2a
Compare
762ac2a to
15ba2a0
Compare
andchiind
left a comment
There was a problem hiding this comment.
LGTM. If you have tested it well that it works then it's ready to merge. Maybe make an issue on adding tests for this feature, if you aren't planning on adding tests for it in this PR
| elif self.prepare_mission_thread.mission: | ||
| self.start_mission_thread = RobotStartMissionThread( | ||
| self.robot, | ||
| self.signal_thread_quitting, | ||
| self.prepare_mission_thread.mission, | ||
| ) | ||
| self.prepare_mission_thread = None | ||
|
|
||
| self.start_mission_thread.start() |
There was a problem hiding this comment.
We could maybe have an "else" with a log warning here
oysand
left a comment
There was a problem hiding this comment.
LGTM, wait with merging this until the PRs adjusting the translational packages are ready
|
This pull request has been automatically marked as stale due to inactivity. |
Ready for review checklist: