diff --git a/api/src/main/java/ca/bc/gov/educ/api/trax/service/SchoolMovedService.java b/api/src/main/java/ca/bc/gov/educ/api/trax/service/SchoolMovedService.java index a338dbca..41094fc3 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/trax/service/SchoolMovedService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/trax/service/SchoolMovedService.java @@ -26,14 +26,10 @@ public SchoolMovedService(SchoolService schoolService) { public void processEvent(final MoveSchoolData moveSchoolData, EventEntity eventEntity) { log.debug("Processing School Moved"); try{ - // school move sometimes not fully processed, sleep 1 second - Thread.sleep(1000); schoolService.updateSchoolCache(Arrays.asList(moveSchoolData.getFromSchoolId(), moveSchoolData.getToSchool().getSchoolId())); this.updateEventWithHistory(eventEntity); } catch (ServiceException e) { log.error(e.getMessage()); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); } }