diff --git a/frappe/core/doctype/report/report.py b/frappe/core/doctype/report/report.py index 0928057e17..2a8e0d849c 100644 --- a/frappe/core/doctype/report/report.py +++ b/frappe/core/doctype/report/report.py @@ -165,7 +165,7 @@ class Report(Document): # automatically set as prepared execution_time = (datetime.datetime.now() - start_time).total_seconds() - if execution_time > threshold and not self.prepared_report: + if execution_time > threshold and not self.prepared_report and not frappe.conf.developer_mode: frappe.enqueue(enable_prepared_report, report=self.name) frappe.cache.hset("report_execution_time", self.name, execution_time)