Skip to content

Commit

Permalink
Invalidate cached simulation data after simulating activities
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienmaillard committed Oct 10, 2023
1 parent 1bac443 commit ec5ae50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,11 @@ private void simulateActivities(final Collection<SchedulingActivityDirective> ac
insertedActivities.put(activity, activityDirective);
}
try {
driver.simulateActivities(directivesToSimulate);
driver.simulateActivities(directivesToSimulate);
} catch(Exception e){
throw new SimulationException("An exception happened during simulation", e);
}
this.lastSimulationData = null;
}

public static class SimulationException extends Exception {
Expand Down

0 comments on commit ec5ae50

Please sign in to comment.