From 47c077ac6a9b2be1df58866f3398e811e8d23c06 Mon Sep 17 00:00:00 2001 From: oysand Date: Tue, 14 Jan 2025 13:38:38 +0100 Subject: [PATCH] Avoid scheduling dock mission twice in parallell --- backend/api/Services/MissionSchedulingService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/api/Services/MissionSchedulingService.cs b/backend/api/Services/MissionSchedulingService.cs index ccbabfa3..17ffd9bf 100644 --- a/backend/api/Services/MissionSchedulingService.cs +++ b/backend/api/Services/MissionSchedulingService.cs @@ -447,7 +447,10 @@ public async Task ScheduleMissionToDriveToDockPosition(string robotId) try { - await missionRunService.Create(missionRun); + await missionRunService.Create( + missionRun: missionRun, + triggerCreatedMissionRunEvent: false + ); } catch (UnsupportedRobotCapabilityException) {