Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-34766

Recommended Updates email will run every hour, but will only actually send emails at 1pm

    XMLWordPrintable

Details

    Description

      Steps to Reproduce:

      1. Enable DEBUG logging on the package: com.atlassian.confluence.plugins.dailysummary
      2. Leave Confluence running for over an hour (alternatively, run the task via Confluence Admin > Scheduled Jobs)

      Observe in the logs:

      2014-08-28 15:31:27,740 INFO [scheduler_Worker-6] [plugins.dailysummary.scheduling.SummaryEmailJob] execute Executing scheduled Summary Email Job
      2014-08-28 15:31:27,750 DEBUG [scheduler_Worker-6] [dailysummary.components.impl.DefaultSummaryEmailNotificationManager] apply Not sending email to xxxx, hour of day is 15 and needs to be 13 in timezone : sun.util.calendar.ZoneInfo[id="Australia/Sydney",offset=36000000,dstSavings=3600000,useDaylight=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/Sydney,offset=36000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=1,endMode=3,endMonth=3,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=1]]
      2014-08-28 15:31:27,774 INFO [scheduler_Worker-6] [dailysummary.components.impl.DefaultSummaryEmailService] sendEmailForDate Summary email job firing @ Thu Aug 28 15:31:27 EST 2014, scheduled fire time was : Thu Aug 28 15:31:27 EST 2014.  false users to receive notifications.
      2014-08-28 15:31:27,774 INFO [scheduler_Worker-6] [plugins.dailysummary.scheduling.SummaryEmailJob] execute Completed scheduled Summary email job, 0 emails added to notification queue

      Looking at the DefaultSummaryEmailNotificationManager class, it seems there used to be a way of setting these emails to go out hourly, but this doesn't seem to be possible any more.

      Please note the check is done for every user so in instances with a big user base it may also cause performance problems (to send nothing). By every user I mean every user in the database, whether they have permissions to access Confluence or not.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ldally lachland
              Votes:
              9 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: