I took a glance at the code in master branch.
I am a complete noob in rails and in ruby, so maybe I’m using the wrong vocabular…
For me, it seams, that TicketArticleCommunicateEmailJob and SearchIndexJob are both derived from ApplicationJob and ApplicationJob includes HasQueuingPriority which sets queue_with_priority by default to 200 and for low_prioirty to 300. SearchIndexJob is using low_priority.
The docs of Delayed::Job states:
:priority
(number): lower numbers run first
By default all jobs are scheduled with
priority = 0
, which is top priority. You can change this by settingDelayed::Worker.default_priority
to something else. Lower numbers have higher priority.
So it seams, that the answer to my question is: “Yes, in zammad mailing for articles has higher priority than indexing”. But then I wonder, why the mails were not sent?
Maybe I’m on the wrong track and there’s another explanation. Maybe someone has an idea?