The discussion is about a Frappe custom scheduled task not triggering automatically despite correct

Hi all,

I’m facing an issue where a scheduled method in my custom Frappe app isn’t triggering automatically via the scheduler.

Environment:

  • Frappe: v15.x.x (develop)
  • Custom app installed and visible in the desk

What I’ve Done:

  • Created a method in the app and added it to hooks.py:

    scheduler_events = {
        "all": [
            "myapp.api.module.method_name"
        ]
    }
    
  • Manually tested the method using the Frappe console — it works fine.

  • Logs (bench log files) show no errors and no output related to the scheduled task.

  • Confirmed scheduler is enabled:

    bench --site mysite.local enable-scheduler
    bench doctor
    
  • Verified that all workers are running (bench start works and shows all services up).

  • Also tried triggering via console and it executes successfully.

Question:
Is there something I’m missing to get the scheduler to automatically trigger my custom method? Any known issues or additional configurations needed to ensure the scheduler_events work properly in custom apps?

Hi @Shreyas1:

Check this … it droves me crazy time ago.