public int getGenerationNumber() {
    return generationNumber;
  }
@param triggerCheckForNewBatch may be triggered more than one in racy conditions
db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/DueExecutionsBatch.java