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

Fix Scoary-2 integration. #101

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Fix Scoary-2 integration. #101

merged 1 commit into from
Jul 2, 2024

Conversation

njohner
Copy link
Contributor

@njohner njohner commented Jul 2, 2024

Scoary-2 uses a database to store scores for topologies and it caches the connection and cursor to that database when scoary gets loaded. This leads to issues for the integration as the SQL object might be used in a different thread than it was created in. We fix it here by resetting the connection before calling scoary.

Note that I have also opened a PR in the scoary repo, so the current fix would not be necessary anymore if it gets fixed there and a new release is made...

Checklist

  • Changelog entry
  • Check that tests still pass
  • Add tests for new features and regression tests for bugfixes whenever possible.

Scoary-2 uses a database to store scores for topologies and it
caches the connection and cursor to that database when scoary gets
loaded. This leads to issues for the integration as the SQL object
might be used in a different thread than it was created in.
We fix it here by resetting the connection before calling scoary.
@njohner njohner force-pushed the nj/fix_scoary_integartion branch from 1afc12b to 861a000 Compare July 2, 2024 10:35
@njohner njohner merged commit 7ac757d into master Jul 2, 2024
@njohner njohner deleted the nj/fix_scoary_integartion branch July 2, 2024 10:38
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.

1 participant