code: private void jobStateChanged(JobStatusChangeEvent event) {
      // Resort the job queue if the job-start-time or job-priority changes
      if (event.getEventType() == EventType.START_TIME_CHANGED
          || event.getEventType() == EventType.PRIORITY_CHANGED) {
        synchronized (jobInitQueue) {
          resortInitQueue();
        }
      }
    }
docs: called when the job's status is changed