Sentry SDK troubles: document them

This commit is contained in:
Klaas van Schelven
2024-05-24 11:52:45 +02:00
parent 55d1aa463c
commit 213d6d9a32
2 changed files with 5 additions and 2 deletions

View File

@@ -8,7 +8,9 @@
# Because SQLite does not support interrupts, we need to spin up a new thread to run the server, so that the main thread
# can be interrupted with SIGINT. We then call the `interrupt()` method on the default connection to interrupt the
# query.
# query. (We have observed that the standard sentry sdk does not play well with this threaded server; when sentry is not
# used you get a nice 500 page and the server serves the next request; when it is used, the server somehow hangs. I did
# not investigate further, will instead create a simplified version of the sentry client for such cases.)
import sys
import signal

View File

@@ -5,7 +5,8 @@
# This version spins up a new thread to run the server, so that the main thread can be interrupted with SIGINT. This is
# useful when Python's signal-handling is not working, e.g. when running a long-running piece of C code that does not
# regularly do the call to the Python signal check.
# regularly do the call to the Python signal check. See cornless-interrupt-sqlite.py for a warning about sentry_sdk
# (observed there, but may apply here too)
# Ideas from:
# https://stackoverflow.com/questions/1032813/dump-stacktraces-of-all-active-threads