Skip to content

Commit

Permalink
fix: only publish repost progress to doc subscriber (#36400)
Browse files Browse the repository at this point in the history
Huge size of string gets blasted to everyone on site. Due to some memory
leak (cause unknown) till sockets are open the strings are also in
process' memory.

related frappe/frappe#21863
  • Loading branch information
ankush committed Jul 29, 2023
1 parent b71dafd commit c0642cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ def update_args_in_repost_item_valuation(
"current_index": index,
"total_reposting_count": len(args),
},
doctype=doc.doctype,
docname=doc.name,
)


Expand Down

0 comments on commit c0642cf

Please sign in to comment.