Skip to content

Commit

Permalink
[Feature][Notification] Notification add job view link
Browse files Browse the repository at this point in the history
  • Loading branch information
putin.cao committed May 21, 2024
1 parent 811bcc7 commit 11c7804
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ private void sendErrorEmail(Long jobExecutionId) {
String jobName;
String dataSourceName = null;
String dataSourceType = null;
String fqdn;
String fqdn= "";
if (jobId == -1L) {
jobName = jobExecution.getName();
fqdn = CommonPropertyUtils.getString(CommonPropertyUtils.DATAVINES_FQDN)+"/#/main/home";
} else {
JobService jobService = jobExternalService.getJobService();
Job job = jobService.getById(jobId);
Expand All @@ -140,7 +139,9 @@ private void sendErrorEmail(Long jobExecutionId) {
DataSource dataSource = jobExternalService.getDataSourceService().getDataSourceById(dataSourceId);
dataSourceName = dataSource.getName();
dataSourceType = dataSource.getType();
fqdn = CommonPropertyUtils.getString(CommonPropertyUtils.DATAVINES_FQDN) + String.format("/#/main/detail/%s/jobs/instance?jobId=%s", dataSourceId, jobId);
if (!CommonPropertyUtils.getString(CommonPropertyUtils.DATAVINES_FQDN).equals(CommonPropertyUtils.DATAVINES_FQDN_DEFAULT)) {
fqdn = CommonPropertyUtils.getString(CommonPropertyUtils.DATAVINES_FQDN) + String.format("/#/main/detail/%s/jobs/instance?jobId=%s", dataSourceId, jobId);
}
}

List<JobExecutionResult> errorJobExecutionResultList = jobExternalService.listErrorJobExecutionResultByJobExecutionId(jobExecution.getId());
Expand Down

0 comments on commit 11c7804

Please sign in to comment.