Scheduler not processing Email Queue automatically (manual flush works)

Hi everyone,

I have an issue with the scheduler not processing the Email Queue automatically in ERPNext / Frappe.

What works:

  • Manual sending from Email Queue → emails are sent successfully

  • Manual command on the server works:

    bench --site backoffice.mikes-hospitality.com execute frappe.email.queue.flush
    
    
  • SMTP (Brevo) is configured correctly – emails arrive instantly when manually flushed

  • All supervisor processes are running:

    • frappe-schedule

    • frappe-short-worker

    • frappe-long-worker

    • Redis / web / socketio all RUNNING

What I already tried:

  • Added "scheduler_tick_interval": 60 to site_config.json

  • Restarted bench + supervisor

  • Scheduler is enabled in System Settings

  • No errors when flushing manually

  • Emails remain in Email Queue with status Not Sent (0 attempts)
    → They do not get picked up automatically after 1–10 minutes

What does NOT work:

  • Automatic scheduled processing of the email queue

  • The scheduler does NOT trigger frappe.email.queue.flush

  • No errors in logs, no attempts visible in Email Queue unless flushed manually

Question:
What could prevent the scheduler from running the email queue job, even though:

  • the scheduler is enabled

  • supervisor shows schedule + workers running

  • manual flushing works perfectly

  • tick interval is set to 60 seconds

  • and the site_config.json is valid?

Is there anything else I should check, like scheduler_events, cron definitions, job registrations, or site freeze state?

Any help is appreciated!

Thanks :folded_hands: