- Custom app created and working fine.
- hooks.py updated with adding the scheduled job on hourly basis
- restarted bench and wait for the scheduled task to run.
The scheduled task does not run.
Site is set for enable-scheduler
Scheduled Job Log does not show any errors
Scheduled Job Type does not list the newly added scheduled job to the list
Go to bench console:
In : from frappe.core.doctype.scheduled_job_type.scheduled_job_type import sync_jobs
In : sync_jobs()
In : frappe.db.commit()
The scheduled job type will now show the newly added scheduled job
The scheduled job will run and show in scheduled job log.
Hope it helps others.