private void onJobFinished(JobParameters jobParameters, boolean b) {
    synchronized (runningJobs) {
      runningJobs.remove(jobParameters);
    }

    jobFinished(jobParameters, b);
  }
SimpleJobService provides a simple way of doing background work in a JobService.

<p>Users should override onRunJob and return one of the {@link JobResult} ints.
jobdispatcher/src/main/java/com/firebase/jobdispatcher/SimpleJobService.java