hello,
please help me !
i am using scheduler_events to execute the method to fetch data using cameras api and storing data into child table.
This method works on local frappe by hourly, but on live server it is not fetching the data automatically, while using bench execute command for that function is successfully fetched and store the data. and also i tried with bench migrate in live server to solve the issue but didn`t work out
On local Server its perfectly works
pause_scheduler | 0
Scheduler is also enable
Refer to this discussion first: Why scheduler is not running.
The name of the Scheduled Job Type is just the module name and function name, not the complete method name.
If a duplicate is found, it will override the old method. Ensure your scheduler_events does not have this issue.
I tried that what you say that The name of the Scheduled Job Type is just the module name and function name, not the complete method name. But nothing works
I try minutes cron also but didn’t call the function minutes the function is work when we execute manually by terminal as well as in local server but in live server is not.
scheduler_events = {
“daily”:[
“hkm_amd.hkm_amd_it.doctype.amd_it_device.amd_it_device.scheduled_update”
],
“hourly”: [
“hkm_amd.hkm_amd_it.doctype.visitor_count.visitor_count.run_fetch_people_count”
]
}
try to write both scheduler like this.
Regards Akash