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 ) ; }
Send a job failure alert email .