receive_imap consumes 100% of CPU. HELP!!

Added by Fernando Fernandez about 2 years ago


I have configured receive_imap task to obtain emails from office365 using this command:

rake redmine:email:receive_imap RAILS_ENV="production" username=REDMINE_MAIL_USER password=REDMINE_MAIL_PASS ssl=true project=backoffice-team tracker="BackOffice Request" allow_override=tracker port=993 -f /usr/share/redmine/Rakefile move_on_success=Inbox unknown_user=create

The task is executed as expected and can create/update new issues if need, but it consumes 100% of the CPU, and the system becomes slow when is running because we need to read 6 mail-inbox and the operation need 2 minutes to finish. I can reproduce on redmine 2.6.0 and 3.4.0

Any suggestion?