now 3k after I just cleaned all of them
I try to look up any chat or summary settings in the admin dashboard but nothing was found.
Any idea where they come from?
P.s. those jobs make my site extremely slow
now 3k after I just cleaned all of them
I try to look up any chat or summary settings in the admin dashboard but nothing was found.
Any idea where they come from?
P.s. those jobs make my site extremely slow
What is in Retries tab of sidekiq?
Here there are 6 jobs being retried. Thatâs an ok number and I know why.
If this is in the 1000âs thatâs not good and you need to take action.
Have you got any errors in Email Logs or the Server Error Logs /logs
?
Things to think about:
Is your email service provider throttling you? Have you exceeded their rate limits for the level of service you are on? Have you paid your bill with them?
itâs zero
and doesnât seem to have email-related issues in the log.
Is there any setting related to chat summary I can turn off or I should just turn of the chat ?
Is the entire queue all UserEmail jobs (for the most part)?
Check your email service dashboard (over at your email service provider, not on Discourse) and see if there is any information there
yes, almost all of them are user email job
I checked mailgun (4 running instances under my account)
the first one is the only one that runs into this issue and the date doesnât seem to be bad, I checked logs too but found nothing suspicious either.
Do they have an audit trail, can you see a tick-over of continuously sent mails?
Last email sent?
So some are getting through, but is it processing them fast enough?
how do i check that?
on discourse (admin/email/sent) I saw the chat summary email was send with a low frequency like at most 5-6 per day, most time only 1 or none. how come it create so many jobs in sidekiq?
Take a look at your email logs in Admin ⊠that might give you more clarity
One thing I noticed is that the sidekiq queue issue started right after I upgraded to 3.4.0.beta4-dev, the other instance I installed around the same time seems to have the issue too (confirming now)
also looked at the ids, it seems the system is trying to send chat summary to every users
is it normal?
update:
Turning off chat prevents those jobs from being queued again, but my site kind of needs the chat function, and I am still looking into other solutions.
another update:
I turned off the chat function for 2 days, turned it on again, and changed the Chat channel retention days from 180 to 3 days. Now it seems to work fine, will keep an eye on it still.
update 02/01:
I set the retention days to 7 , aound 1,101,685 Enqueued jobs right now, seems my server is able to handle this amount and the site wonât become slow.
@th21 how many users and chat channels do you have?
How âfastâ (or slowly ) does the low
queue get processed?
9k users and 3 channels (including 1 default staff channel)
this is the current status
before I made the changes mentioned above, the low queue size seems never decrease
Sorry about that @th21 - it was indeed a bug that will be fixed by
We have a query that list all the âusers with unreadâ mentions or dms for chat, and, in trying to be too clever, it ended being wrong. Instead of enqueue a âchat summaryâ (aka. email notification) for mentions in channels or unread in dms, it was enqueueing a job for every messages Since that job ran every 5 minutes, it easily bloated sidekiq with useless jobs⊠(note: the email were thankfully not being sent as we would not be able to retrieve any mentions).
thx, When is the estimated time of arrival for this commit to be merged into test-passed?
< 48 hours
@th21 itâs been reviewed and merged