Remove emails from send queue?


(Stephen R Foster) #1

I had Discourse running for several months without emails working. This was fine for the time, but now I’m trying to get emails working and there’s a huge backlog of unsent messages. I’m using SES and I’m about to take my SES account out of “sandbox” mode with Amazon.

I want to prevent a big spike of old emails from being sent, though. I can see from various logs that Discourse is trying to send a TON of emails (which luckily are still being rejected by Amazon). Can I get a magic query or something to make Discourse to chill out and stop worrying about the old emails?


(Jeff Atwood) #2

I think there is a way to do this from the Ruby command line @zogstrip?


(Régis Hanol) #3

I would flush (:toilet:) redis with

# ssh into your server
cd /var/discourse
./launcher enter app
redis-cli flushall

(Stephen R Foster) #4

Super. Seems to have settled everything down. Thanks! :slight_smile:


(Régis Hanol) #5