}
context.getGroupManager().updateJobStatus(jobstatus);
if (!success) {
// 运行失败,更新失败状态,发出失败消息
ZeusJobException jobException = null;
if (exception != null) {
jobException = new ZeusJobException(jobId,
String.format("JobId:%s run failed ", jobId),
exception);
} else {
jobException = new ZeusJobException(jobId,
String.format("JobId:%s run failed ", jobId));
}
ScheduleInfoLog.info("JobId:" + jobId
+ " run fail and dispatch the fail event");
JobFailedEvent jfe = new JobFailedEvent(jobId, type,