mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
Merge pull request #46779 from frappe/mergify/bp/version-15-hotfix/pr-46775
fix: for deadlock issue keep status as In Progress (backport #46775)
This commit is contained in:
@@ -291,7 +291,7 @@ def repost(doc):
|
|||||||
|
|
||||||
status = "Failed"
|
status = "Failed"
|
||||||
# If failed because of timeout, set status to In Progress
|
# If failed because of timeout, set status to In Progress
|
||||||
if traceback and "timeout" in traceback.lower():
|
if traceback and ("timeout" in traceback.lower() or "Deadlock found" in traceback):
|
||||||
status = "In Progress"
|
status = "In Progress"
|
||||||
|
|
||||||
if traceback:
|
if traceback:
|
||||||
@@ -306,6 +306,7 @@ def repost(doc):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if status == "Failed":
|
||||||
outgoing_email_account = frappe.get_cached_value(
|
outgoing_email_account = frappe.get_cached_value(
|
||||||
"Email Account", {"default_outgoing": 1, "enable_outgoing": 1}, "name"
|
"Email Account", {"default_outgoing": 1, "enable_outgoing": 1}, "name"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user