From e7b5fee3552c610e19b2a3cfa52926c1d1850a6d Mon Sep 17 00:00:00 2001 From: Wes Kendall Date: Sat, 8 Mar 2014 11:02:33 -0500 Subject: [PATCH] updated README to not include abc stuff in the celery example --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index cccfad7..f8aaa0f 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: