in src/main/java/com/googlesource/gerrit/plugins/batch/BatchCleaner.java [116:137]
public void run() {
Iterable<Batch> batches = null;
try {
batches = list.getBatches();
} catch (Exception e) {
log.atSevere().withCause(e).log("getting list of batches to clean.");
// Ignore errors and hope someone notices the log file and fixes before the next run
return;
}
for (Batch batch : batches) {
if (canceled) {
return;
}
try {
remover.remove(batch.id);
} catch (Exception e) {
log.atSevere().withCause(e).log("cleaning batch: %s", batch.id);
// Ignore errors and hope someone notices the log file and fixes before the next run
}
}
}