If schedular is not enabled then enable it.
Reference: Frappe.email.queue.flush execution timing - #2 by NCP