Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions appmap/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ def wrapped_execute(self, sql, params=None):
@receiver(connection_created)
def connected(sender, connection, **_):
# pylint: disable=unused-argument

# warm the version cache in the backend to avoid running
# additional queries in the middle of processing client queries
database_version(connection)

wrappers = connection.execute_wrappers
if not any(isinstance(x, ExecuteWrapper) for x in wrappers):
wrappers.append(ExecuteWrapper())
Expand Down
2 changes: 1 addition & 1 deletion ci/smoketest.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -e
pip install -U pip pytest flask python-decouple
pip install -U pip pytest "flask<2" python-decouple
pip install /dist/appmap-*-py3-none-any.whl

cp -R /appmap/test/data/unittest/simple ./.
Expand Down