@Override
      public int compare(CommandReport o1, CommandReport o2) {
        return (int) (o1.getTaskId()-o2.getTaskId());
      }
Persists command reports into the db
@param reports command reports
@param commands a list of commands that correspond to reports list (it should be
a 1 to 1 matching). We use this list to avoid fetching commands from the DB
twice
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionManager.java