From e1de877c0312468b8461aa1a59d6d63da83ebc6f Mon Sep 17 00:00:00 2001 From: Adam Stevenson Date: Fri, 11 Oct 2024 11:05:23 +0100 Subject: [PATCH] updating time and adding log message to check scheduler working (#3341) * updating time and adding log message to check scheduler working * upadting time * testing --- .../reform/bulkscanprocessor/services/email/ReportSender.java | 1 + src/main/resources/application.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/uk/gov/hmcts/reform/bulkscanprocessor/services/email/ReportSender.java b/src/main/java/uk/gov/hmcts/reform/bulkscanprocessor/services/email/ReportSender.java index 453d97dd02..824dff3799 100644 --- a/src/main/java/uk/gov/hmcts/reform/bulkscanprocessor/services/email/ReportSender.java +++ b/src/main/java/uk/gov/hmcts/reform/bulkscanprocessor/services/email/ReportSender.java @@ -72,6 +72,7 @@ public ReportSender( @SchedulerLock(name = "report-sender") public void send() { try { + log.info("Sending {} from {}", EMAIL_SUBJECT, from); MimeMessage msg = mailSender.createMimeMessage(); MimeMessageHelper helper = new MimeMessageHelper(msg, true); diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 3a40c72452..2f42322535 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -74,7 +74,7 @@ monitoring: enabled: ${NO_NEW_ENVELOPES_TASK_ENABLED} reports: - cron: ${REPORTS_CRON:0 0 6 ? * *} + cron: ${REPORTS_CRON:0 20 11 ? * *} recipients: ${REPORTS_RECIPIENTS:} info: