@Override
  public void getScheduledExecutions(
      ScheduledExecutionsFilter filter, String taskName, Consumer<Execution> consumer) {
    UnresolvedFilter unresolvedFilter = new UnresolvedFilter(taskResolver.getUnresolved());

    QueryBuilder q = queryForFilter(filter, orderByPriority);
    if (unresolvedFilter.isActive() && !filter.getIncludeUnresolved()) {
      q.andCondition(unresolvedFilter);
    }
    q.andCondition(new TaskCondition(taskName));

    jdbcRunner.query(
        q.getQuery(),
        q.getPreparedStatementSetter(),
        new ExecutionResultSetConsumer(consumer, filter.getIncludeUnresolved(), false));
  }
Instead of doing delete+insert, we allow updating an existing execution will all new fields

@return the execution-time of the new execution
db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/jdbc/JdbcTaskRepository.java