Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed the way that the shared context is accessed.

  • Loading branch information...
commit 8ba46086f0d9a320c68dd7568908c413a02a7fc9 1 parent 87b4cbb
@bmorganpa bmorganpa authored
View
3  django_ztask/__init__.py
@@ -9,6 +9,3 @@
__homepage__ = "http://github.com/dmgctrl/django-ztask"
__docformat__ = "restructuredtext"
__license__ = "BSD (3 clause)"
-
-import zmq
-context = zmq.Context()
View
2  django_ztask/decorators.py
@@ -12,7 +12,7 @@ def wrapper(func):
logger = logging.getLogger('ztaskd')
logger.info('Registered task: %s' % function_name)
- from django_ztask import context
+ from django_ztask.context import shared_context as context
socket = context.socket(zmq.PUSH)
socket.connect(settings.ZTASKD_URL)
@wraps(func)
View
2  django_ztask/management/commands/ztaskd.py
@@ -2,7 +2,7 @@
from django.utils import autoreload
#
from django_ztask.conf import settings
-from django_ztask import context
+from django_ztask.context import shared_context as context
#
from optparse import make_option
import sys
Please sign in to comment.
Something went wrong with that request. Please try again.