Class ScheduledJobEmailService

java.lang.Object
com.bluebell.greenhouse.radicle.services.email.impl.SimpleEmailService
com.bluebell.greenhouse.radicle.services.email.impl.ScheduledJobEmailService
All Implemented Interfaces:
EmailService

@Service public class ScheduledJobEmailService extends SimpleEmailService implements EmailService
Service-layer for notification emails about failed Jobs.
Version:
3.0.6
Author:
Stephen Prizio
  • Constructor Details

    • ScheduledJobEmailService

      public ScheduledJobEmailService(io.github.cdimascio.dotenv.Dotenv dotenv, org.springframework.mail.javamail.JavaMailSender mailSender, EmailTemplateRenderer emailTemplateRenderer)
      Constructs the scheduled job email service.
      Parameters:
      dotenv - environment variables
      mailSender - mail sender
      emailTemplateRenderer - email template renderer
  • Method Details

    • sendFailedJobEmail

      public void sendFailedJobEmail(Job job, ActionExecution failedExecution)
      Sends the failure notification for an attempt that has exhausted its retries.
      Parameters:
      job - failed Job attempt
      failedExecution - the ActionExecution that ended the attempt, if one was recorded