fix: delete email queue first (#16968)

email queue takes a long time and during that previously deleted tables
remain locked. Activity/Error logs are relatively faster to delete so
should moved last
This commit is contained in:
Ankush Menat 2022-05-24 12:50:37 +05:30 committed by GitHub
parent 9bd79e80a6
commit bfda3869a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,9 +11,9 @@ from frappe.query_builder.functions import Now
class LogSettings(Document):
def clear_logs(self):
self.clear_email_queue()
self.clear_error_logs()
self.clear_activity_logs()
self.clear_email_queue()
def clear_error_logs(self):
table = DocType("Error Log")