Mail Generation Queue (formerly called Event Queue)
Last updated
Last updated
The mail generation queue is a component that generates email items asynchronously. Email items are then delivered via thee Mail Queue and Outgoing Mail Server of JIRA or via the Outgoing Mail Connections configured in Email This Issue. Read more about it here.
The mail generation queue is useful for monitoring the internal status of the queue and to adjust some parameters. To see the queue, go to OUTGOING EMAILS -> Mail Generation Queue.
Attribute | Description |
---|---|
Total Queued | The total number of email actions queued. |
Total Completed | The total number of email actions completed. |
Currently on Queue | The total number of email actions queued for processing. If you experience that hundreds or thousands of items are waiting on the queue as an average, consider increasing the number of worker threads. |
Active Worker Threads | The current number of active worker threads processing the email actions. |
Average Time in Queue (ms) | The average time of the last 100 email actions spent on the queue. The time metric excludes the default queue delay. |
Maximum Worker Threads | The maximum number of worker threads to process the email actions. This number may vary from 0 to 64. Important: Setting the maximum worker threads to 0 disables asynchronous processing. Email actions are processed synchronously. |
Maximum number of items waiting on the queue | This is the maximum number of items on the mail queue. Although the items on the queue are small (less than 10 kB each), the more items are waiting on the queue (as per the Currently on Queue value above), the more memory is allocated. Theoretically this may lead to Out Of Memory errors putting the system stability at risk. Therefore a hard limitation is introduced to prevent this. Even the largest Jira instances have normally not more than a few hundred items on the queue as an average. If you experience this constantly, consider increasing the number of worker threads. |
Email actions are methods for sending emails using Jira Email This Issue.
Email Action | Executed via the Mail Queue asynchronously |
---|---|
Emails sent manually using the Email Button and Email Screen | |
Emails sent using the Email Issue Filters feature from the Issue Navigator | |
Emails sent using the Email This Issue Workflow post-function | |
Emails sent as part of Event Notifications | |
Emails sent as an auto-response for incoming emails | |
Emails sent via the Email This Issue Rest API |
Pros | Cons | |
---|---|---|
Asynchronous |
|
|
Synchronous | Instant sending of emails. |
|
Manual emails are dispatched synchronously
Bulk emails are always sent asynchronously
if there is a JQL condition in the post function
Otherwise
Event notifications are always processed asynchronously
Event notifications are always processed asynchronously
Event notifications are always processed asynchronously