Scheduler is not working [Solved]

Hi All,
I have written a function for sending an email to user however the function is working perfectly when I call it via Custom Script, but its not working when I run it via Hooks through scheduler.

scheduler_events = {
	"all": [
		"library_management.update_items.autoemail_crm_updaets1"
	]
}

Does anybody have an idea about this?

Edit: Even, I don’t see any error in the Scheduler Too
Regards
Ruchin Sharma

Hi Everyone,
It is resolved now.
Actually, I checked on the Forum that if there is a lock file:

frappe-bench/site1.local/locks/scheduler.lock

Then you just have to delete that file and do a

bench restart

and it will perfectly work.

Regards
Ruchin Sharma

2 Likes