code: public synchronized void cancel() {
      for (int taskId : mJobInfo.getTaskIdList()) {
        mCommandManager.submitCancelTaskCommand(mJobInfo.getId(), taskId,
            mTaskIdToWorkerInfo.get(taskId).getId());
      }
    }
docs: Cancels the current job.