When does a Daily Auto Email get sent? How can I tell if it fails?

We were trying to use the Auto Email function to send out a report every day of the sales register report.

We would like to get the report at 9pm each day, but I do not see anywhere to actually set the time of day.

When does the report email go out if it is set to “Daily”??

Thanks,

BKM

I find it’s usually midnight

logs/worker.error.log records when your scheduled jobs run.

Probably these run at some default time, here are notes and clues

Schedule jobs at particular date and/or time - #2 by JoEz

Scheduler Job Manager, a simple app to schedule jobs at a date/time - #3 by JoEz

(env) frappe@erpnext:~/frappe-bench$ find . -name ‘*.py’ | xargs grep send_daily
./apps/frappe/frappe/hooks.py: “frappe.email.doctype.auto_email_report.auto_email_report.send_daily”,
./apps/frappe/frappe/email/doctype/auto_email_report/auto_email_report.py:def send_daily():

By default jobs run at midnight, since version 9 you can schedule your own job using cron strings:

https://frappe.io/docs/user/en/tutorial/task-runner

1 Like

@JoEz @clarkej @Julian_Robbins

Wow! Thank everyone. I will look into the custom setting later, but for now I will see if it works at midnight.

BKM

Ok… so this report is not being sent even though it is saved in the system.

Is there a place I can go to see any errors that might be generated. I am trying to track down why the report is not going out in email each night.

Thanks,

BKM