Emails not delivered in development unless queue jobs is unselected

On the latest master branch, emails are not being delivered in my local development environment unless I deselect the ‘queue jobs’ site setting. If I execute the job from the console it still works as expected. If I check out an earlier version it also works as expected. I’m not sure what is going on with this.

4 Likes

This is by design, see:

https://github.com/discourse/discourse/blob/master/lib/demon/sidekiq.rb#L28

In particular launch sidekiq with:

bin/sidekiq -q critical -q default -q low

The reason this stopped working is that you are only starting a “default” queue by default and lots of emails actually get queued in the “critical” queue and “low” queue.

Perhaps a PR to update any dev guide out there?

6 Likes