Skip to content

Commit d9990a2

Browse files
authored
fix(similarity): Return failure reason from multithread seer call (#77522)
Return failure reason from multithread seer call in the backfill This allows the reason to be logged and the logic to skip projects with gateway timeouts [here](https://github.com/getsentry/sentry/blob/ff9a79b8945522173459675164ecbcd7e055405c/src/sentry/tasks/embeddings_grouping/backfill_seer_grouping_records_for_project.py#L248-L279)
1 parent b74546e commit d9990a2

File tree

1 file changed

+1
-0
lines changed
  • src/sentry/tasks/embeddings_grouping

1 file changed

+1
-0
lines changed

src/sentry/tasks/embeddings_grouping/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ def process_chunk(chunk_data, chunk_stacktrace):
499499
for seer_response in seer_responses:
500500
if not seer_response["success"]:
501501
aggregated_response["success"] = False
502+
aggregated_response.update({"reason": seer_response["reason"]})
502503
return aggregated_response
503504

504505
aggregated_response["groups_with_neighbor"].update(

0 commit comments

Comments
 (0)