Skip to content

Commit

Permalink
show how many jobs failed or succeeded in email notfication
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlaidlaw committed Mar 29, 2021
1 parent 7b13513 commit f9494e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bj.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ func send_notification_email(projectBool bool, proj_name string) {
}

// command to generate the multiline email body
email_body := exec.Command("printf", "\n\nThis is an automated message on bjobs ending")
count_jobs := exit_jobs + done_jobs
var body_text string
body_text = "Hello human\n\nOut of a total of " + strconv.Itoa(count_jobs) + " jobs, " + strconv.Itoa(exit_jobs) + " exited, and " + strconv.Itoa(done_jobs) + " finished succesfully"
body_text = body_text + "\n\nThis is an automated message on bjobs ending, to raise an issue please visit the github respository 'seanlaidlaw/Better-Bjobs-Go'"
email_body := exec.Command("printf", body_text)

// command to send email
email_adrr := os.Getenv("USER") + "@sanger.ac.uk"
Expand Down

0 comments on commit f9494e6

Please sign in to comment.