feat(autofix): Update seer explorer autofix last triggered on completion#111663
1 issue
sentry-backend-bugs: Found 1 issue (1 high)
High
Unhandled Group.DoesNotExist in on_completion_hook.execute - `src/sentry/seer/autofix/on_completion_hook.py:247`
Line 85 calls Group.objects.get(id=group_id, ...) without handling DoesNotExist. If the group is deleted between when the autofix run was triggered and when the completion hook fires, this raises an unhandled exception. The refactoring removed the DoesNotExist handling that previously existed in _maybe_trigger_supergroups_embedding (lines 233-242 in old code) and _maybe_continue_pipeline (lines 319-332 in old code) without adding equivalent handling in execute.
Also found at:
src/sentry/seer/autofix/on_completion_hook.py:85
Duration: 2m 8s · Tokens: 505.3k in / 6.6k out · Cost: $0.77 (+extraction: $0.01, +merge: $0.00)
Annotations
Check failure on line 247 in src/sentry/seer/autofix/on_completion_hook.py
sentry-warden / warden: sentry-backend-bugs
Unhandled Group.DoesNotExist in on_completion_hook.execute
Line 85 calls `Group.objects.get(id=group_id, ...)` without handling `DoesNotExist`. If the group is deleted between when the autofix run was triggered and when the completion hook fires, this raises an unhandled exception. The refactoring removed the `DoesNotExist` handling that previously existed in `_maybe_trigger_supergroups_embedding` (lines 233-242 in old code) and `_maybe_continue_pipeline` (lines 319-332 in old code) without adding equivalent handling in `execute`.
Check failure on line 85 in src/sentry/seer/autofix/on_completion_hook.py
sentry-warden / warden: sentry-backend-bugs
[95N-HVM] Unhandled Group.DoesNotExist in on_completion_hook.execute (additional location)
Line 85 calls `Group.objects.get(id=group_id, ...)` without handling `DoesNotExist`. If the group is deleted between when the autofix run was triggered and when the completion hook fires, this raises an unhandled exception. The refactoring removed the `DoesNotExist` handling that previously existed in `_maybe_trigger_supergroups_embedding` (lines 233-242 in old code) and `_maybe_continue_pipeline` (lines 319-332 in old code) without adding equivalent handling in `execute`.