Fix Wikibase upload of batches with only new items. Closes #4242 (#4244)

This commit is contained in:
Antonin Delpeuch 2021-10-23 19:33:43 +02:00 committed by GitHub
parent 30a0f6643d
commit 40398e1192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,7 @@ public class EditBatchProcessor {
Thread.sleep(sleepTime); Thread.sleep(sleepTime);
} }
} }
if (currentDocs == null) { if (currentDocs == null && !qidsToFetch.isEmpty()) {
logger.warn("Giving up on fetching documents to edit. Skipping "+remainingEdits()+" remaining edits."); logger.warn("Giving up on fetching documents to edit. Skipping "+remainingEdits()+" remaining edits.");
globalCursor = scheduled.size(); globalCursor = scheduled.size();
} }