Skip to content

Commit 7b1b391

Browse files
committed
Merge pull request #4 from wesleykendall/develop
updated README to not include abc stuff in the celery example
2 parents 5556b4a + e7b5fee commit 7b1b391

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,15 @@ In order to change the duration of a lock, set the DB_MUTEX_TTL_SECONDS variable
5252
Django DB Mutex can be used with celery's tasks in the following manner.
5353

5454
from celery import Task
55-
from abc import ABCMeta, abstractmethod
5655

5756
class NonOverlappingTask(Task):
5857
__metaclass__ = ABCMeta
5958

60-
@abstractmethod
6159
def run_worker(self, *args, **kwargs):
6260
"""
6361
Run worker code here.
6462
"""
65-
pass
63+
raise NotImplementedError()
6664

6765
def run(self, *args, **kwargs):
6866
try:

0 commit comments

Comments
 (0)