From 2872fc3234157c23dfad3ebf1eba2c4d954df4fb Mon Sep 17 00:00:00 2001 From: Samir Hanna Verza <123646616+samirhvbr@users.noreply.github.com> Date: Thu, 29 Oct 2026 07:07:19 -0300 Subject: [PATCH] fix(retry): use the validated root ID in the usage-limit handler --- strix/core/runner.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/strix/core/runner.py b/strix/core/runner.py index 3aea5deb3..6ee6c67df 100644 --- a/strix/core/runner.py +++ b/strix/core/runner.py @@ -718,14 +718,12 @@ async def run_strix_scan( scan_id, ) _note_exit_reason("rate_limited") - if root_id is not None: - with contextlib.suppress(Exception): - await coordinator.set_status(root_id, "stopped") + with contextlib.suppress(Exception): + await coordinator.set_status(root_id, "stopped") return None logger.exception("Strix scan %s failed", scan_id) - if root_id is not None: - with contextlib.suppress(Exception): - await coordinator.set_status(root_id, "failed") + with contextlib.suppress(Exception): + await coordinator.set_status(root_id, "failed") raise except BaseException: logger.exception("Strix scan %s failed", scan_id)