fix: realtime log when commit/rollback happen in same req
This commit is contained in:
parent
687b660370
commit
4f797f0bcd
1 changed files with 3 additions and 2 deletions
|
|
@ -86,11 +86,12 @@ def flush_realtime_log():
|
|||
for args in frappe.local._realtime_log:
|
||||
frappe.realtime.emit_via_redis(*args)
|
||||
|
||||
frappe.local._realtime_log = []
|
||||
clear_realtime_log()
|
||||
|
||||
|
||||
def clear_realtime_log():
|
||||
frappe.local._realtime_log = []
|
||||
if hasattr(frappe.local, "_realtime_log"):
|
||||
del frappe.local._realtime_log
|
||||
|
||||
|
||||
def emit_via_redis(event, message, room):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue