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

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:
mergify[bot]
2024-07-12 12:14:55 +05:30
committed by GitHub
parent 5e3810b12a
commit 1de66e56ee

View File

@@ -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,
},
)