File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
src/sentry/integrations/utils Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ def sync_group_assignee_inbound(
117
117
projects_by_user = Project .objects .get_by_users (users )
118
118
119
119
groups_assigned = []
120
+
121
+ assignee_not_found = False
122
+
120
123
for group in affected_groups :
121
124
user_id = get_user_id (projects_by_user , group )
122
125
user = users_by_id .get (user_id )
@@ -128,10 +131,13 @@ def sync_group_assignee_inbound(
128
131
)
129
132
groups_assigned .append (group )
130
133
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
+
135
141
return groups_assigned
136
142
137
143
You can’t perform that action at this time.
0 commit comments