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
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 )