I just stumbled on a small problem (in my config?)
question is if we should fix this in django-pq, or at least document the behavior.
- default sentry DSNs (in docs, heroku, ...) are with scheme
https
- since getsentry/raven-python@7a69328 , seems to be in raven 3.6.0, the threaded http transport for the
http or https scheme is default.
pqworker forks a process to do the job-work
- the threaded raven transport uses a background thread to send the events to sentry (see the source)
- our
Worker class kills the forked process when the work is done.
So the result is, failed jobs are not sent to sentry.
What should be the best solution to fix this?
- wait somehow until the background thread is finished?
- on registering, raise an error when an async transport is used?
- document the behavior?
edit: changed raven-version where this appeared.
I just stumbled on a small problem (in my config?)
question is if we should fix this in django-pq, or at least document the behavior.
httpshttporhttpsscheme is default.pqworkerforks a process to do the job-workWorkerclass kills the forked process when the work is done.So the result is, failed jobs are not sent to sentry.
What should be the best solution to fix this?
edit: changed raven-version where this appeared.