Skip to content

Commit

Permalink
Update AjouterThesesPersonnesProcessor.java
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-chmbn authored May 22, 2024
1 parent 8d87701 commit 2bf793d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ public TheseModel process(TheseModel theseModel) throws Exception {

java.util.Set nntLies = elasticSearchUtils.getNntLies(theseModel.getId());

mutex.lock();

try {
mutex.lock();
log.info("Dans la liste des thesesEnTraitement : " + thesesEnTraitement.size());

while (
Expand All @@ -129,7 +129,7 @@ public TheseModel process(TheseModel theseModel) throws Exception {
) {
mutex.unlock();
log.info("On attends ...");
Thread.sleep(100);
Thread.sleep(200);
mutex.lock();
}
thesesEnTraitement.addAll(nntLies);
Expand Down Expand Up @@ -227,8 +227,8 @@ public TheseModel process(TheseModel theseModel) throws Exception {

log.info("6 fin traitement");

mutex.lock();
try {
mutex.lock();
thesesEnTraitement.removeAll(nntLies);
} catch (Exception e) {
for (Object nnt:nntLies) {
Expand Down

0 comments on commit 2bf793d

Please sign in to comment.