Skip to content

Commit 3c588ad

Browse files
authored
🔧 chore(jira): prevent EventLifecycle flow errors (#95936)
1 parent 9a82288 commit 3c588ad

File tree

1 file changed

+10
-4
lines changed
  • src/sentry/integrations/utils

1 file changed

+10
-4
lines changed

src/sentry/integrations/utils/sync.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def sync_group_assignee_inbound(
117117
projects_by_user = Project.objects.get_by_users(users)
118118

119119
groups_assigned = []
120+
121+
assignee_not_found = False
122+
120123
for group in affected_groups:
121124
user_id = get_user_id(projects_by_user, group)
122125
user = users_by_id.get(user_id)
@@ -128,10 +131,13 @@ def sync_group_assignee_inbound(
128131
)
129132
groups_assigned.append(group)
130133
else:
131-
lifecycle.record_halt(
132-
ProjectManagementHaltReason.SYNC_INBOUND_ASSIGNEE_NOT_FOUND, extra=log_context
133-
)
134-
logger.info("inbound-assignee-not-found", extra=log_context)
134+
assignee_not_found = True
135+
136+
if assignee_not_found:
137+
lifecycle.record_halt(
138+
ProjectManagementHaltReason.SYNC_INBOUND_ASSIGNEE_NOT_FOUND, extra=log_context
139+
)
140+
135141
return groups_assigned
136142

137143

0 commit comments

Comments
 (0)