Skip to content

Commit

Permalink
[UPD] Log exception thrown during planning workpackages.
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Nov 1, 2023
1 parent 4c6d24e commit cd11c7e
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,15 @@ public RevisionPlan createRevisionPlanScheduleDeducedFromRevisionExecution(Strin
* @return
*/
public RevisionPlan createRevisionPlanScheduleDeducedFromSimilarRevisions(String revisionId, boolean mixedSchedule) {
Workpackage wp = workpackageService.getWorkpackageWithExecutionsAndSessions(revisionId);
if(wp == null)
return null;
return createRevisionPlanScheduleDeducedFromSimilarRevisions(wp, mixedSchedule).outputPlan;
try {
Workpackage wp = workpackageService.getWorkpackageWithExecutionsAndSessions(revisionId);
if (wp == null)
return null;
return createRevisionPlanScheduleDeducedFromSimilarRevisions(wp, mixedSchedule).outputPlan;
}catch (Exception e){
LOG.error("Error occurred while constructing plan for workpackage with revision id \"{}\".", revisionId, e);
throw e;
}
}

public PlanResult createRevisionPlanScheduleDeducedFromSimilarRevisions(Workpackage wp, boolean mixedSchedule) {
Expand Down

0 comments on commit cd11c7e

Please sign in to comment.