Email Queue not sending

Hey,
Emails are scheduled in email queue but its not sending.
If we select a job and click send now it works fine.

bench enable-scheduler shows enabled.
bench doctor shows
-----Checking scheduler status-----
Scheduler paused for sitex
Scheduler inactive for sitex
Workers online: 3
-----sitex Jobs-----

Any solutions?

1 Like

Hi @parth_agrawal,

have you checked this: V11 can't suspend nor resume email queue - #6 by Himanshu_Mishra

If all fails, this is a bulletproof workaround :wink: V11 can't suspend nor resume email queue - #10 by lasalesi

@lasalesi
Thanks for the reply.

I want a permanent working solution.
It works but this makes no sense everytime we need to run this script.

Is there anyway we can automate execution of this script everytime there are emails in queue?

Tried this and working well.

Add this into common_site_config.json file
"scheduler_interval":60
now mail will be sent in every one-minute interval

3 Likes

Thank you so much. This did the job.

how can we do for frappe cloud??

1 Like

I have applied this, but still the email queue stucks in Not Sent, any ideas guys ?

1 Like

I have frappe cloud on a shared bench and the following worked for me:

  1. Go to Site Config on Frappe Cloud
    • Add Config
  2. Config Name: Disable Scheduler | Value: 1
  3. Add Key
  4. Wait a couple of hours
  5. Go back and delete it

I still had to manually resent the emails that were on queue, but all the new ones worked fine

Hope this helps!