diff --git a/.travis.yml b/.travis.yml index 4179019..2b17e2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: env: - DJANGO=1.6.1 DB=postgres install: + - python setup.py install - pip install -q Django==$DJANGO - pip install -r requirements.txt before_script: diff --git a/README.md b/README.md index 2c6b519..8f8734f 100644 --- a/README.md +++ b/README.md @@ -52,17 +52,15 @@ In order to change the duration of a lock, set the DB_MUTEX_TTL_SECONDS variable Django DB Mutex can be used with celery's tasks in the following manner. from celery import Task - from abc import ABCMeta, abstractmethod class NonOverlappingTask(Task): __metaclass__ = ABCMeta - @abstractmethod def run_worker(self, *args, **kwargs): """ Run worker code here. """ - pass + raise NotImplementedError() def run(self, *args, **kwargs): try: diff --git a/db_mutex/VERSION b/db_mutex/VERSION index 49d5957..d917d3e 100644 --- a/db_mutex/VERSION +++ b/db_mutex/VERSION @@ -1 +1 @@ -0.1 +0.1.2