feat(autofix): Update seer explorer autofix last triggered on completion #111663
@sentry/warden / warden
completed
Mar 30, 2026 in 2m 35s
1 issue
High
Unhandled Group.DoesNotExist when group is deleted between fetch_run_status and lookup - `src/sentry/seer/autofix/on_completion_hook.py:230`
The refactoring in this hunk removes DoesNotExist handlers from _maybe_trigger_supergroups_embedding (removed lines 236-248) and _maybe_continue_pipeline (removed lines 310-328), replacing them with a group parameter passed from execute(). However, the execute() method at line 85 calls Group.objects.get(id=group_id, project__organization_id=organization.id) without any try/except handler. If the group is deleted between when the run was created and when this completion hook executes, a Group.DoesNotExist exception will crash the hook, preventing webhook delivery and pipeline continuation.
Also found at:
src/sentry/seer/autofix/on_completion_hook.py:85
2 skills analyzed
| Skill | Findings | Duration | Cost |
|---|---|---|---|
| sentry-security | 0 | 2m 29s | $1.60 |
| sentry-backend-bugs | 1 | 2m 11s | $0.81 |
Duration: 4m 40s · Tokens: 1.3M in / 16.4k out · Cost: $2.43 (+extraction: $0.01, +merge: $0.00, +dedup: $0.01)
Loading