Cron job is not working

Hi,

I’ve added a cron job which would work at 01:00AM every day,
but its not working, where can i find the reason of not working?

"cron":{
		"0 1 * * *":[
			"erpnext.hr.doctype.leave_allocation.leaves.fun"
		]
	}
1 Like

https://frappe.io/docs/user/en/bench/guides/diagnosing-the-scheduler
And check that scheduler is enabled and resumed.

bench --site sitename scheduler enable
bench --site sitename scheduler resume
2 Likes

Thanks @ammarhararah for your reply, my cron job starts working by itself.