Skip to content

Commit db2901a

Browse files
trevor-eclaude
andcommitted
fix(night-shift): Remove poll timeout that aborted Explorer runs
The polling loop in agentic triage raised a TimeoutError after 120s, which abandoned the entire night shift run for an org even though the Explorer was still working on the Seer side. For large orgs like Sentry the Explorer can take longer than 120s to investigate all candidates. Remove the client-side poll timeout and let the task's own processing deadline (5 minutes) be the backstop instead. Fixes SENTRY-5NFV Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7b39044 commit db2901a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/sentry/tasks/seer/night_shift/agentic_triage.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def _triage_candidates(
131131

132132

133133
POLL_INTERVAL = 2.0
134-
POLL_TIMEOUT = 120.0
135134

136135

137136
def _poll_with_logging(
@@ -192,10 +191,6 @@ def _poll_with_logging(
192191
)
193192
return state
194193

195-
elapsed = time.monotonic() - start_time
196-
if elapsed >= POLL_TIMEOUT:
197-
raise TimeoutError(f"Explorer run {run_id} timed out after {POLL_TIMEOUT}s")
198-
199194
time.sleep(POLL_INTERVAL)
200195

201196

0 commit comments

Comments
 (0)