@WorkerThread
  private void handleStopJobRequestImpl(final JobParameters job, final boolean needToSendResult) {
    synchronized (runningJobs) {
      JobCallback jobCallback = runningJobs.remove(job.getTag());
      if (jobCallback == null) {
        if (Log.isLoggable(TAG, Log.DEBUG)) {
          Log.d(TAG, "Provided job has already been executed.");
        }
        return;
      }

      // onStopJob needs to be called on the main thread
      mainHandler.post(
          UnitOfWork.callOnStopJob(
              this,
              jobCallback,
              /* needToSendResult= */ needToSendResult,
              /* terminatingResult= */ RESULT_SUCCESS));
    }
  }
Asks job to stop.

<p>Sending results can be skipped if the call was initiated by a reschedule request.
jobdispatcher/src/main/java/com/firebase/jobdispatcher/JobService.java