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

🤖 Add Initialization Check to Prevent Duplicate Setup #1273

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sentry-autofix[bot]
Copy link
Contributor

👋 Hi there! This PR was automatically generated by Autofix 🤖

This fix was triggered by Jenn Mueng

This update introduces checks to ensure that certain initialization routines are only executed once per application context in three files: src/seer/db.py, src/celery_app/app.py, and src/seer/bootup.py. Each of these modifications adds a check for a specific attribute on the application or function (_db_initialized for the database, _config_initialized for the Celery app, and _initialized for the bootup function) to prevent reinitialization. This change enhances performance by preventing redundant configurations and ensures that application state is maintained correctly across different parts of the application.

If you have any questions or feedback for the Sentry team about this fix, please email [email protected] with the Run ID (see below).

🤓 Stats for the nerds:

Run ID: 1061
Prompt tokens: 746312
Completion tokens: 25959
Total tokens: 772271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants