fix: keep status as In Progress for RIV for Timeout Error (#42274)

This commit is contained in:
rohitwaghchaure
2024-07-12 11:54:35 +05:30
committed by GitHub
parent b17696a8ae
commit 10280d6140

View File

@@ -284,6 +284,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
@@ -292,7 +297,7 @@ def repost(doc):
doc.name,
{
"error_log": message,
"status": "Failed",
"status": status,
},
)