in src/main/java/com/ericsson/gerrit/plugins/gcconductor/executor/GcWorker.java [70:86]
public void run() {
while (!cpm.isCancelled()) {
String repoPath = pickRepository();
if (repoPath != null) {
runGc(repoPath);
} else {
log.debug("No repository picked, going to sleep");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
log.debug("Gc task was interrupted while waiting to pick a repository");
Thread.currentThread().interrupt();
return;
}
}
}
}