Scheduler from hooks is not working

hi guys

       I written in hooks.py

                 "all": [

	"biometric_attendance.api.testing"
],
"cron": {

	"0/1 * * * *": [
	    "biometric_attendance.api.testing"
	]
}

its not calling that method even i have tried sudo bench trigger-scheduler-event all for that its reaching upto method but automatic its not calling that method

1 Like

The logs say here /home/frappe/frappe-bench/logs or here /var/log/cron.log should give you clues what is going on.

hi @clarkej

  Sorry for late reply  this is the cron.log 

May 12 10:56:17 Epoch cron[5344]: (CRON) INFO (pidfile fd = 3)
May 12 10:56:17 Epoch cron[5344]: (CRON) INFO (Skipping @reboot jobs – not system startup)
May 12 11:04:01 Epoch cron[871]: (CRON) INFO (pidfile fd = 3)
May 12 11:04:01 Epoch cron[871]: (CRON) INFO (Running @reboot jobs)
May 12 11:17:01 Epoch CRON[4713]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)

this is crontab file

m h dom mon dow user command

17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

What do logs like worker.error.log say?

Look for threads like these for clues to troubleshoot