Skip to content

fix(autofix): Handle deleted groups in autofix tasks#110386

Merged
Mihir-Mavalankar merged 1 commit intomasterfrom
fix/autofix-group-does-not-exist
Mar 11, 2026
Merged

fix(autofix): Handle deleted groups in autofix tasks#110386
Mihir-Mavalankar merged 1 commit intomasterfrom
fix/autofix-group-does-not-exist

Conversation

@Mihir-Mavalankar
Copy link
Contributor

@Mihir-Mavalankar Mihir-Mavalankar commented Mar 10, 2026

  • Autofix tasks (generate_summary_and_run_automation, generate_issue_summary_only, run_automation_only_task) crash with Group.DoesNotExist when a group is deleted between task queueing and execution. Add a shared helper that catches the exception and returns early with a warning log, matching the pattern used in tasks/email.py and tasks/merge.py.
  • Issue link: https://sentry.sentry.io/issues/7312916675/replays/?project=1

Autofix tasks (generate_summary_and_run_automation,
generate_issue_summary_only, run_automation_only_task) crash with
Group.DoesNotExist when a group is deleted between task queueing and
execution. Add a shared helper that catches the exception and returns
early with a warning log, matching the pattern used in tasks/email.py
and tasks/merge.py.

Co-Authored-By: Claude <noreply@anthropic.com>
@Mihir-Mavalankar Mihir-Mavalankar self-assigned this Mar 10, 2026
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 10, 2026
@Mihir-Mavalankar Mihir-Mavalankar merged commit ed5d936 into master Mar 11, 2026
60 checks passed
@Mihir-Mavalankar Mihir-Mavalankar deleted the fix/autofix-group-does-not-exist branch March 11, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants