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:
parent
9bd79e80a6
commit
bfda3869a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue