Jmix email sender stops working after a few days

I had that happen now for the second time. The mail executor threads are still alive,but no mails get processed suddenly. That means no attempts are even made. No status change or anything. Mails are stuck in the queued state.

As soon as I restart the server the mails are sent immediatly.

Has anybody had this problem before?

Are you using the default or custom Quartz scheduler configuration?

Default with a custom cron expression:
jmix.email.email-sending-cron=*/10 * * * * ?

I would try to switch to custom config and add logging to find out whether emailer.processQueuedEmails() is executed.

1 Like

Tried that, but I don’t get an error log. Actually I found out, that the quarts jobs somehow get removed… very strange.

Before it’s like this in the quartz admin:
Screenshot from 2022-11-17 22-29-18

After a few days:
Screenshot from 2022-11-17 22-29-25

Then I restart the server and the quartz jobs are back again.