Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17971

Add ability to resend emails synchronously

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.10
    • Fix Version/s: 12.10
    • Component/s: Mail
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Imagine that you have millions of emails to resend. If you try to resend them asynchronously then the prepare and send queues will reach their full capacity and will refuse more emails, leading to an exception. In addition if you increase the queue sizes to a large value then you'll hit a memory issue since the queues are in memory.

      Thus it's interesting to be able to resend emails one by one in this case.

      Note that a future improvement will be to be able to resend by batches, ie. batches of max queue sizes, but there might still be use cases for resending synchronously one by one if you wish to keep a low memory usage and if your code is executed in a separate thread.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: