-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Synchronously drain async error reporting queue #1612
Comments
I'm aware of the problem you mentioned here, but it depends on how the errors are captured. sentry-ruby/sentry-ruby/lib/sentry/background_worker.rb Lines 26 to 31 in c4d2623
But I think it didn't work. Other than that, I don't have much option to force |
@st0012 thanks for the snappy reply! Yeah, it's a tricky problem. Could we add something along the lines of
This would enable the resque user to do something like:
|
It's not that I don't want to provide such API, but the underneath |
Last time I checked this issue on |
Here's what I'm testing out:
Shutdown process copied from: Here's what the resque hooks look like:
|
@iloveitaly thanks for digging into this issue and even provide a sample code for the solution 🙏 |
If you are using a background queue like Resque, threads are killed after a job completes. In this scenario, I believe errors would fail to send to sentry.
Is there a way to synchronously drain the async error reporting queue? This could be added to a before exit hook on the resque side.
The text was updated successfully, but these errors were encountered: