Info |
---|
Since 9.0.0 the polling interval for the Mail Accounts can be set in Jira, on the accounts configuration page. |
Incoming Mail Accounts are used to poll mailboxes for new emails to be processed by the Next Generation Mail Handlers. By default, Mail Accounts poll the mailboxes every minute.
The problem is that Microsoft 365 limitations are sometimes imposed on applications accessing mail accounts too often and returns throttling errors.
This article is about changing the polling interval directly until this feature is released as part of the app.
Instructions
Incoming Mail Accounts are polling mailboxes periodically, this is triggered by a scheduled job.
These jobs cannot be configured via the Jira UI but can be seen in JIRA_URL/secure/admin/SchedulerAdmin.jspa
...
The Job in question is called incomingMailAccountsJobRunner. Jira does not allow to change the Schedule attribute via the UI, however it can be done in the database.
...
Open the Jira database in a database client app
...
Check the content of the table called clusteredjob
Find the record whose job_id field has the value: incomingMailAccountsJobRunner. A sample SQL SELECT for PostgreSQL is shown below:
Code Block | ||
---|---|---|
| ||
SELECT * FROM public.clusteredjob WHERE job_id='incomingMailAccountsJobRunner' |
...
Update this record by changing the column cron_expression to 0 */5 * * * ? including the tailing question mark as shown below:
...
...
Save the changes in the table, and after 1-2 minutes, you can verify that the scheduled job is running in periods of 5 minutes using the Jira administration screen shown above.
Note |
---|
This is a temporary workaround until we release the feature to set intervals manually from the app’s administration screen. This change in the database does not survive Jira restarts. You need to apply it after a restart. |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
hidden | true |
---|
...
Redirect | ||||||
---|---|---|---|---|---|---|
|
Thank you for visiting our old product documentation site. Note that we no longer store or update our documentation here.Please navigate to our new documentation site and update your bookmarks accordingly. If you're looking for the former content of this page, click here. |