private List<Execution> updateToPicked(
      List<Execution> executions, String pickedBy, Instant lastHeartbeat) {
    return executions.stream()
        .map(old -> old.updateToPicked(pickedBy, lastHeartbeat))
        .collect(Collectors.toList());
  }
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