浏览代码

Python Task Queue ! Django Task Queue

Ask Solem 16 年之前
父节点
当前提交
77ffd5d90d
共有 4 个文件被更改,包括 7 次插入7 次删除
  1. 2 2
      README.rst
  2. 1 1
      celery/__init__.py
  3. 1 1
      celery/loaders/default.py
  4. 3 3
      docs/index.rst

+ 2 - 2
README.rst

@@ -1,5 +1,5 @@
 ============================================
 ============================================
-celery - Distributed Task Queue for Django.
+celery - Distributed Task Queue for Python
 ============================================
 ============================================
 
 
 :Version: 0.3.12
 :Version: 0.3.12
@@ -7,7 +7,7 @@ celery - Distributed Task Queue for Django.
 Introduction
 Introduction
 ============
 ============
 
 
-``celery`` is a distributed task queue framework for Django.
+``celery`` is a distributed task queue framework for Python.
 
 
 It is used for executing tasks *asynchronously*, routed to one or more
 It is used for executing tasks *asynchronously*, routed to one or more
 worker servers, running concurrently using multiprocessing.
 worker servers, running concurrently using multiprocessing.

+ 1 - 1
celery/__init__.py

@@ -1,4 +1,4 @@
-"""Distributed Task Queue for Django"""
+"""Distributed Task Queue for Python"""
 VERSION = (0, 3, 12)
 VERSION = (0, 3, 12)
 __version__ = ".".join(map(str, VERSION))
 __version__ = ".".join(map(str, VERSION))
 __author__ = "Ask Solem"
 __author__ = "Ask Solem"

+ 1 - 1
celery/loaders/default.py

@@ -10,6 +10,6 @@ class Loader(BaseLoader):
         return settings
         return settings
 
 
     def on_worker_init(self):
     def on_worker_init(self):
-        imports = getattr(self.conf, "imports", [])
+        imports = getattr(self.conf, "CELERY_TASK_MODULES", [])
         for module in imports:
         for module in imports:
             __import__(module, [], [], {''})
             __import__(module, [], [], {''})

+ 3 - 3
docs/index.rst

@@ -2,9 +2,9 @@
    You can adapt this file completely to your liking, but it should at least
    You can adapt this file completely to your liking, but it should at least
    contain the root `toctree` directive.
    contain the root `toctree` directive.
 
 
-================================
- Celery - The Django Task Queue
-================================
+=================================
+ Celery - Distributed Task Queue
+=================================
 
 
 Contents:
 Contents: