Hide stale errors after strategy stop

This commit is contained in:
Thigazhezhilan J 2026-04-02 10:25:01 +05:30
parent 88ea093525
commit 102f145553

View File

@ -930,7 +930,16 @@ def _issue_is_stale_for_current_state(
reason = payload.get("reason") or extra.get("reason")
reason_key = str(reason or "").strip().lower()
if status_key == "STOPPED" and event in {"BROKER_AUTH_EXPIRED", "EXECUTION_BLOCKED", "SIP_NO_FILL"}:
if status_key == "STOPPED" and event in {
"BROKER_AUTH_EXPIRED",
"EXECUTION_BLOCKED",
"SIP_NO_FILL",
"PRICE_FETCH_ERROR",
"HISTORY_LOAD_ERROR",
"ENGINE_ERROR",
"ORDER_REJECTED",
"ORDER_CANCELLED",
}:
return True
if event == "EXECUTION_BLOCKED" and reason_key == "market_closed":