mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 07:22:13 +00:00
fix: keep status as In Progress for RIV for Timeout Error (#42274)
(cherry picked from commit 10280d6140)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -289,6 +289,11 @@ def repost(doc):
|
||||
if isinstance(message, dict):
|
||||
message = message.get("message")
|
||||
|
||||
status = "Failed"
|
||||
# If failed because of timeout, set status to In Progress
|
||||
if traceback and "timeout" in traceback.lower():
|
||||
status = "In Progress"
|
||||
|
||||
if traceback:
|
||||
message += "<br><br>" + "<b>Traceback:</b> <br>" + traceback
|
||||
|
||||
@@ -297,7 +302,7 @@ def repost(doc):
|
||||
doc.name,
|
||||
{
|
||||
"error_log": message,
|
||||
"status": "Failed",
|
||||
"status": status,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user