[stats wf] indicators across stats dbs & updates in the org ids #248
|
@ -135,7 +135,6 @@ public class ORCIDWorker extends Thread {
|
|||
orcidId = queue.take();
|
||||
|
||||
if (orcidId.equalsIgnoreCase(JOB_COMPLETE)) {
|
||||
queue.put(orcidId);
|
||||
hasComplete = true;
|
||||
} else {
|
||||
start = System.currentTimeMillis();
|
||||
|
|
|
@ -155,15 +155,17 @@ public class OrcidGetUpdatesFile {
|
|||
throw new RuntimeException(e);
|
||||
}
|
||||
});
|
||||
queue.put(ORCIDWorker.JOB_COMPLETE);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 22; i++) {
|
||||
queue.put(ORCIDWorker.JOB_COMPLETE);
|
||||
}
|
||||
for (ORCIDWorker worker : workers) {
|
||||
worker.join();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue