batch.js
function discardIfOverAttempted(tasksByName, count) {
      if (tasksByName) {
        taskUtils.getTasks(tasksByName).forEach(task => {
          const n = task.discardIfOverAttempted(maxNumberOfAttempts, true);
          if (count) overAttempted += n;
        });
      }
    }
function discardIfOverAttempted(tasksByName, count) {
      if (tasksByName) {
        taskUtils.getTasks(tasksByName).forEach(task => {
          const n = task.discardIfOverAttempted(maxNumberOfAttempts, true);
          if (count) overAttempted += n;
        });
      }
    }
function discardIfOverAttempted ( tasksByName , count ) { if ( tasksByName ) { taskUtils . getTasks ( tasksByName ) . forEach ( task => { const n = task . discardIfOverAttempted ( maxNumberOfAttempts , true ) ; if ( count ) overAttempted += n ; } ) ; } }
Mark any over-attempted tasks as discarded
Mark any over - attempted tasks as discarded