Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodic notifications, continued #11

Merged

Conversation

ianmcorvidae
Copy link
Member

This should let timelord pass down a run duration to the email template, and allow it to use a specified template for those notifications rather than everything using the status change one. de-mailer PR with an initial template to use there also incoming.

subject := fmt.Sprintf(PeriodicSubjectFormat, j.Name, starttime, durString)

msg := fmt.Sprintf(
PeriodicMessageFormat,
j.Name,
j.ID,
starttime,
dur,
durString,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a small secondary change -- the notification text in the DE was showing "0s" due to the way we were modifying the dur object. It should be showing the same thing as the subject line in the DE/as the email subject, so now it is.

@ianmcorvidae
Copy link
Member Author

Review is still welcome, but I'm going to go ahead and get this in so I can be testing it in QA.

@ianmcorvidae ianmcorvidae merged commit ba17c1c into cyverse-de:main Sep 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant