-
Notifications
You must be signed in to change notification settings - Fork 39
Trouble connecting RQ workers to Opbeat #97
Comments
@sburns sorry for the long wait. I debugged this a bit, and it seems that our async http mode isn't compatible with rq. As a workaround, you can disable the async mode like this
I'll leave this open for now until we find out what the root problem is |
Thanks for the update! I'll give this a spin and let you know how it goes. |
Hi @piquadrat this didn't work for me :( |
@sburns bummer :( We'll investigate further |
Hi! Is there any fix for this already? Otherwise I'll just have to move to Celery :) |
We're close to that as well. |
@piquadrat is this still under investigation? |
+1 |
Any update on this? |
Any update? This is getting close to abandon territory. |
Hi @hugorodgerbrown, sorry for the silence on this! Totally my fault that this fell through the cracks. Unfortunately, we weren't able to resolve this issue, and I can't give you a timeline at the moment. However, we plan to ramp up the work on our Python agent over the coming months, and first-class support for rq is definitely a priority. |
Thanks for the update @beniwohli - out of interest do you have any further detail on why / where it falls down - plenty of people on this thread available to help diagnose / fix on your behalf? |
@beniwohli Please help with regards to this issue because we would love to profile our RQ worker as well. |
@sivabudh @beniwohli @ksmandersen @sburns @Zowie I spent a little time on this and managed to get it working; it's a little bit more manual than the rest of the out of the box experience but it works just fine for us. It involves writing your own rq exception handler and plugging it into the Worker; then contacting Opbeat with the normal client (not Django client) via sync requests. Sync requests are absolutely fine for us as we're dealing with low throughput background jobs; but be aware that the call would obviously be blocking. Rather than inundate this post with gists: Triggering Opbeat errors from Python RQ Workers. Hope it helps someone. |
Hi, thanks for Opbeat, we very much enjoy using it. We're in the process of moving our Django app to use RQ+django-rq and want to continue to get errors logged in Opbeat.
I'm trying to use
opbeat.contrib.rq.register_opbeat
this way...And I start up the worker with the custom class,
./manage.py rqworker high low medium --worker-class path.to.MyWorker
The worker is syslog'd and I've verified the handler is attached and being called...
Just for fun, I threw an
assert False == True
early in a view and hitting that page does send an AssertionError to opbeat, so the site is configured to send errors.Any ideas?
The text was updated successfully, but these errors were encountered: