code: public static void sendJobFailureAlertEmail(String jobName, String message, int failures, State jobState)
        throws EmailException {
      sendEmail(jobState, String.format("Gobblin alert: job %s has failed %d %s consecutively in the past", jobName,
          failures, failures > 1 ? "times" : "time"), message);
    }
docs: Send a job failure alert email.
  
  @param jobName job name
  @param message email message
  @param failures number of consecutive job failures
  @param jobState a {@link State} object carrying job configuration properties
  @throws EmailException if there is anything wrong sending the email