ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Scheduler and Email queue not working


#1

Hello everyone,

I’m using ERPNext: v10.0.5 (master)
Frappe : v10.0.6 (master)

Email account is set properly.
But Scheduler is not working , emails are not coming in the Email Queue.
Welcome mails can be sent when a new user is created.
Also, mails can be sent using the Sendmail function when delayed set is false.

Can anyone help me in resolving this issue?

Below is the Output of “Show pending jobs” :


#2

Have you tried to run, bench enable-scheduler from your frappe-bench directory?


#3

Yes, it is already enabled. And i’ve run this command before as well.


#4

We seem to be having the same issue @NikitaD30 have you resolved this issue?


#5

No, Did not get anything yet.


#6

@NikitaD30
Can you post the output from bench doctor command


#7

Sure.
Below is the output of bench doctor.

image


#8

Seems like for 2 sites (chaitrali_test & kf_data_migrate) Scheduler is disabled.

If you want to enable scheduler for one of those sites

Please run bench --site <site-name> enable-scheduler

Best,
Suraj


#9

Did , still the same .


#10

@NikitaD30

One weird thing I noticed is that no workers are online.

Can you restart the bench server and run that bench doctor again and check if workers are online?

*(If you want to execute the pending jobs before restart run bench worker. Once all the jobs get executed you can kill that and restart your bench)

Best,
Suraj