fix(Database): clear background jobs and realtime logs on rollback (#20236)
This commit is contained in:
parent
5581be43b1
commit
e9dfa80cf0
1 changed files with 3 additions and 0 deletions
|
|
@ -994,6 +994,9 @@ class Database:
|
|||
if hasattr(obj, "on_rollback"):
|
||||
obj.on_rollback()
|
||||
frappe.local.rollback_observers = []
|
||||
|
||||
frappe.local.realtime_log = []
|
||||
frappe.flags.enqueue_after_commit = []
|
||||
|
||||
def field_exists(self, dt, fn):
|
||||
"""Return true of field exists."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue