private void disableTuning(JobDefinition jobDefinition, String reason) {
    TuningJobDefinition tuningJobDefinition = TuningJobDefinition.find.where()
        .eq(TuningJobDefinition.TABLE.job + '.' + JobDefinition.TABLE.id, jobDefinition.id)
        .findUnique();
    if (tuningJobDefinition.tuningEnabled) {
      tuningJobDefinition.tuningEnabled = false;
      tuningJobDefinition.tuningDisabledReason = reason;
      tuningJobDefinition.save();
    }
  }
Switches off tuning for the given job
@param jobDefinition Job for which tuning is to be switched off
app/com/linkedin/drelephant/tuning/FitnessComputeUtil.java