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

IMP: use same SQLite session for both logger and dashboard #25

Open
Keegan-Evans opened this issue Nov 28, 2023 · 0 comments
Open

IMP: use same SQLite session for both logger and dashboard #25

Keegan-Evans opened this issue Nov 28, 2023 · 0 comments

Comments

@Keegan-Evans
Copy link
Contributor

Keegan-Evans commented Nov 28, 2023

Currently mqtt-data-logger' and sensor-dashboard each create and use their own SQLite session, which leads to both processes encountering OperationalError: database lockedfairly regularly,sensor-dashboardis somewhat robust to this(3 backed off retries), butmqtt-data-logger` is not and will simply crash and restart(see this issue).

Possible Solutions:

  • PREFERRED bring both sets of code into this repository, and have the main function create a single session object that is used to run both apps relevant issue

  • figure out a way to share context/have one or the other share their session object with the other process.

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

No branches or pull requests

1 participant