mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-05 21:00:13 -06:00
Sentry SDK troubles: document them
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user