Hi i dont know why default frappe app i installed cant use socketio or scheduler. It not work although i use hook and migrate
scheduler_events = {
“cron”:{
“* * * * *”:[
“custom_app.module_app.function_execute”
]
}
It’s saying: Scheduler is enabled for site mysite.localhost
OMG, i can see it in GUI. Yes, i saw it when opening Scheduled Job Type
Next Execution is 3 minutes ago, it seem not execute schedule
It mean creating Scheduled Job Log, isnt it?
I see it’s status is Scheduled And this is in scheduler.log:
2025-01-13 08:08:48,129 ERROR scheduler Skipped queueing custom_app.module.config.check_data because it was found in queue for mysite.localhost
share a screenshot
hi, sorry for the delay. i used worker and bench doctor to check, it’s normally. But scheduler not work, just when i use execute. Next execution is paused
Thank @bahaou for your enthusiastic support. I found solution.
Setting:
bench --site your.site enable-scheduler
bench --site your.site scheduler resume
expect “pause_scheduler”: false in site_config.json
Then, I use command in 3 terminal to run project with scheduler:
- bench worker
- bench serve --noreload
- bench --site sitename schedule
Additional to, can use bench doctor to check workers and jobs. Access Background Jobs Doctype in GUI to see every task.
Hope to help people with the same case