Socketio, Scheduler in Frappe

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”
]
}

@SKDragon18 what is the output of bench scheduler status

It’s saying: Scheduler is enabled for site mysite.localhost

@SKDragon18 when you open Scheduled Job Type , can you see your function ?

OMG, i can see it in GUI. Yes, i saw it when opening Scheduled Job Type

1 Like

Next Execution is 3 minutes ago, it seem not execute schedule

@SKDragon18 open the log on top of the document

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:

  1. bench worker
  2. bench serve --noreload
  3. 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