title: Inconsistent job scheduling by job scheduler
body: <p>I used job scheduler for sending notification at whatever time interval lets say 4 minutes at regular interval so I used </p>
  
  <blockquote>
    <p>setPeriodic(duration * 60 * 1000);   //duration is 4 minutes </p>
  </blockquote>
  
  <p>but its inconsistent first it sends notification after 1 minute or 2 minute then 1 minute then 4 minutes then 8 minutes also I guess it caches previous duration, its here how I implemented code:</p>
  
  <pre><code>    public static void Scheduler(Context context){
  
      ComponentName componentName = new 
                ComponentName(context, ClsJobService.class);
  
      JobInfo.Builder builder =  new JobInfo.Builder(0, componentName)
  
             .setPeriodic(duration * 60 * 1000);
      JobScheduler jobScheduler =  (JobScheduler) 
                context.getSystemService (Context.JOB_SCHEDULER_SERVICE);
      jobScheduler.schedule(builder.build());
  
  }
  </code></pre>