-
-
Notifications
You must be signed in to change notification settings - Fork 653
Gearman support #312
Gearman support #312
Conversation
|
Hi, Thanks for your pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping the comma avoid to see that line in the diffs if we had another item in the list after it.
The reason is, that gearman workers are implemented via https://github.com/CodeScaleInc/django-gearman-commands app. Basically it is classic django command, that runs in infinite loop and process jobs from gearman daemon in separate thread. For more information how this works, please visit the github repo for django-gearman-commands.
Yes it will. This is my setting from django project. SENTRY_CLIENT = 'raven.contrib.django.gearman.GearmanClient' Only when using GearmanClient in your settings, gearman daemon is required. When your are using GearmanClient and gearman daemon is not installed ConnectionError is raised. When using standard DjangoClient, gearman daemon is no required at all. I hope this answered your questions. |
|
IIRC this will force raven_gearman.py to be imported as part of Django's cycle, which would then throw an ImportError for anyone not using the gearman controls |
|
I see your point now. I can make a little modification in raven_gearman.py then: from future import absolute_import if gettattr('RAVEN_CONFIG', settings) == 'raven.contrib.django.gearman.GearmanClient': Will this be satisfactory ? |
|
It looks a bit tricky to me. |
|
Ya ideally something like contrib.django.raven.gearman (or whatever namespace makes sense) that you can drop in your INSTALLED_APPS |
|
Ok sounds good. I can make contrib.django.gearman as an django app that can be dropped easily in INSTALLED_APPS. |
|
You need to add on top of your files so that the builds can be run by travis |
|
ok, I'm going to close this. Note that raven will undergo this year a movement to split specific framework appart from the core. |
I have implemented gearman support for raven sentry client. For more information what gearman is, and what is does please refer to http://gearman.org/.
This pull request includes: