Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(similarity): Increase seer delay and add to log #77474

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def backfill_seer_grouping_records_for_project(
"reason": seer_response.get("reason"),
"current_project_id": current_project_id,
"last_processed_project_index": last_processed_project_index,
"worker_number": worker_number,
},
)
sentry_sdk.capture_exception(Exception("Seer failed during backfill"))
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/tasks/embeddings_grouping/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def _make_seer_call(
post_bulk_grouping_records,
create_grouping_records_request,
retries=5,
delay=4,
delay=5,
exceptions=Exception,
)

Expand Down
2 changes: 2 additions & 0 deletions tests/sentry/tasks/test_backfill_seer_grouping_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,7 @@ def test_backfill_seer_grouping_records_gateway_timeout(self, mock_seer_request,
"reason": "Gateway Timeout",
"current_project_id": self.project.id,
"last_processed_project_index": 0,
"worker_number": None,
},
),
call(
Expand Down Expand Up @@ -1893,6 +1894,7 @@ def test_backfill_seer_grouping_records_internal_error(self, mock_seer_request,
"reason": "Internal Error",
"current_project_id": self.project.id,
"last_processed_project_index": 0,
"worker_number": None,
},
),
]
Expand Down
Loading