Skip to content

Commit

Permalink
updating time and adding log message to check scheduler working (#3341)
Browse files Browse the repository at this point in the history
* updating time and adding log message to check scheduler working

* upadting time

* testing
  • Loading branch information
amstevenson authored Oct 11, 2024
1 parent e5db434 commit e1de877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e1de877

Please sign in to comment.