Skip to content

Commit

Permalink
Merge pull request #37976 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-37971

refactor: optimize bulk transaction for speed (backport #37971)
  • Loading branch information
ruthra-kumar authored Nov 8, 2023
2 parents 3c843c7 + 3d97a98 commit cbf8a14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions erpnext/utilities/bulk_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ def mark_retrired_transaction(log_doc, doc_name):
record = 0
for d in log_doc.get("logger_data"):
if d.transaction_name == doc_name and d.transaction_status == "Failed":
d.retried = 1
frappe.db.set_value("Bulk Transaction Log Detail", d.name, "retried", 1)
record = record + 1

log_doc.save()

return record

0 comments on commit cbf8a14

Please sign in to comment.