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

retry on locked errors when getting lost followers #15187

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

zzstoatzz
Copy link
Collaborator

@zzstoatzz zzstoatzz commented Sep 3, 2024

closes #15170

we should probably review access patterns to improve sqlite performance across the board, but this appears to avoid the errors described in the linked issue

@github-actions github-actions bot added the bug Something isn't working label Sep 3, 2024
@zzstoatzz zzstoatzz force-pushed the retry-lost-followers branch from 7d8e041 to efb8099 Compare September 3, 2024 15:31
Copy link

codspeed-hq bot commented Sep 3, 2024

CodSpeed Performance Report

Merging #15187 will not alter performance

Comparing retry-lost-followers (958e948) with main (057f1d3)

Summary

✅ 3 untouched benchmarks

@zzstoatzz zzstoatzz force-pushed the retry-lost-followers branch from efb8099 to 958e948 Compare September 3, 2024 15:58
@zzstoatzz zzstoatzz self-assigned this Sep 3, 2024
@zzstoatzz zzstoatzz marked this pull request as ready for review September 3, 2024 15:58
@@ -513,6 +514,13 @@ async def reactive_evaluation(event: ReceivedEvent, depth: int = 0):
await session.commit()


# retry on operational errors to account for db flakiness with sqlite
@retry_async_fn(max_attempts=3, retry_on_exceptions=(sa.exc.OperationalError,))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i love how we have an internal utility with a better UX than our retry settings on tasks 😂 🙃

@zzstoatzz zzstoatzz merged commit c40d069 into main Sep 3, 2024
34 checks passed
@zzstoatzz zzstoatzz deleted the retry-lost-followers branch September 3, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Period checks of trigger service result in database locked error, with ephemeral server
2 participants