Ask Solem vor 9 Jahren
Ursprung
Commit
0cc715aee6

+ 0 - 1
celery/app/utils.py

@@ -188,7 +188,6 @@ def detect_settings(conf, preconf={}, ignore_keys=set(), prefix=None,
             # Majority of the settings are old.
             info, left = _old_settings_info, is_in_new
     elif is_in_old:
-        print('IS IN OLD: %r' % (is_in_old, ))
         # have old setting names, or a majority of the names are old.
         info, left = _old_settings_info, is_in_new
         if is_in_new and len(is_in_new) > len(is_in_old):

+ 1 - 1
celery/backends/new_cassandra.py

@@ -1,7 +1,7 @@
 # -* coding: utf-8 -*-
 """
     celery.backends.new_cassandra
-    ~~~~~~~~~~~~~~~~~~~~~~~~~
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
     Apache Cassandra result store backend using DataStax driver
 

+ 3 - 9
docs/configuration.rst

@@ -374,12 +374,8 @@ Can be one of the following:
     Use `MongoDB`_ to store the results.
     See :ref:`conf-mongodb-result-backend`.
 
-* cassandra
-    Use `Cassandra`_ to store the results.
-    See :ref:`conf-cassandra-result-backend`.
-
 * new_cassandra
-    Use `new_cassandra`_ to store the results, using newer database driver than _cassandra_.
+    Use `Cassandra`_ to store the results, using newer database driver than _cassandra_.
     See :ref:`conf-new_cassandra-result-backend`.
 
 * ironcache
@@ -564,8 +560,6 @@ you to customize the table names:
 RPC backend settings
 --------------------
 
-.. _conf-amqp-result-backend:
-
 .. setting:: result_persistent
 
 result_persistent
@@ -1012,6 +1006,8 @@ The URL is formed out of the following parts:
     The default container the CouchDB server is writing to.
     Defaults to ``default``.
 
+.. _conf-amqp-result-backend:
+
 AMQP backend settings
 ---------------------
 
@@ -1045,8 +1041,6 @@ result_exchange_type
 The exchange type of the result exchange.  Default is to use a `direct`
 exchange.
 
-.. setting:: result_persistent
-
 result_persistent
 ~~~~~~~~~~~~~~~~~
 

+ 113 - 113
docs/internals/deprecation.rst

@@ -31,67 +31,6 @@ Removals for version 4.0
         >>> from celery.result import result_from_tuple
         >>> result = result_from_tuple(tup)
 
-.. _deprecations-v4.0:
-
-Removals for version 5.0
-========================
-
-Old Task API
-------------
-
-.. _deprecate-compat-task-modules:
-
-Compat Task Modules
-~~~~~~~~~~~~~~~~~~~
-
-- Module ``celery.decorators`` will be removed:
-
-  Which means you need to change::
-
-    from celery.decorators import task
-
-Into::
-
-    from celery import task
-
-- Module ``celery.task`` *may* be removed (not decided)
-
-    This means you should change::
-
-        from celery.task import task
-
-    into::
-
-        from celery import task
-
-    -- and::
-
-        from celery.task import Task
-
-    into::
-
-        from celery import Task
-
-
-Note that the new :class:`~celery.Task` class no longer
-uses classmethods for these methods:
-
-    - delay
-    - apply_async
-    - retry
-    - apply
-    - AsyncResult
-    - subtask
-
-This also means that you can't call these methods directly
-on the class, but have to instantiate the task first::
-
-    >>> MyTask.delay()          # NO LONGER WORKS
-
-
-    >>> MyTask().delay()        # WORKS!
-
-
 TaskSet
 ~~~~~~~
 
@@ -132,21 +71,6 @@ should be rewritten into::
     def add(self, x, y):
         print("My task id is {0.request.id}".format(self))
 
-
-Task attributes
----------------
-
-The task attributes:
-
-- ``queue``
-- ``exchange``
-- ``exchange_type``
-- ``routing_key``
-- ``delivery_mode``
-- ``priority``
-
-is deprecated and must be set by :setting:`task_routes` instead.
-
 :mod:`celery.result`
 --------------------
 
@@ -182,43 +106,6 @@ The :signal:`task_sent` signal will be removed in version 4.0.
 Please use the :signal:`before_task_publish` and :signal:`after_task_publush`
 signals instead.
 
-
-Modules to Remove
------------------
-
-- ``celery.execute``
-
-  This module only contains ``send_task``, which must be replaced with
-  :attr:`@send_task` instead.
-
-- ``celery.decorators``
-
-    See :ref:`deprecate-compat-task-modules`
-
-- ``celery.log``
-
-    Use :attr:`@log` instead.
-
-- ``celery.messaging``
-
-    Use :attr:`@amqp` instead.
-
-- ``celery.registry``
-
-    Use :mod:`celery.app.registry` instead.
-
-- ``celery.task.control``
-
-    Use :attr:`@control` instead.
-
-- ``celery.task.schedules``
-
-    Use :mod:`celery.schedules` instead.
-
-- ``celery.task.chords``
-
-    Use :func:`celery.chord` instead.
-
 Settings
 --------
 
@@ -277,6 +164,119 @@ Other Settings
 =====================================  =====================================
 
 
+
+.. _deprecations-v5.0:
+
+Removals for version 5.0
+========================
+
+Old Task API
+------------
+
+.. _deprecate-compat-task-modules:
+
+Compat Task Modules
+~~~~~~~~~~~~~~~~~~~
+
+- Module ``celery.decorators`` will be removed:
+
+  Which means you need to change::
+
+    from celery.decorators import task
+
+Into::
+
+    from celery import task
+
+- Module ``celery.task`` *may* be removed (not decided)
+
+    This means you should change::
+
+        from celery.task import task
+
+    into::
+
+        from celery import task
+
+    -- and::
+
+        from celery.task import Task
+
+    into::
+
+        from celery import Task
+
+
+Note that the new :class:`~celery.Task` class no longer
+uses classmethods for these methods:
+
+    - delay
+    - apply_async
+    - retry
+    - apply
+    - AsyncResult
+    - subtask
+
+This also means that you can't call these methods directly
+on the class, but have to instantiate the task first::
+
+    >>> MyTask.delay()          # NO LONGER WORKS
+
+
+    >>> MyTask().delay()        # WORKS!
+
+
+Task attributes
+---------------
+
+The task attributes:
+
+- ``queue``
+- ``exchange``
+- ``exchange_type``
+- ``routing_key``
+- ``delivery_mode``
+- ``priority``
+
+is deprecated and must be set by :setting:`task_routes` instead.
+
+
+Modules to Remove
+-----------------
+
+- ``celery.execute``
+
+  This module only contains ``send_task``, which must be replaced with
+  :attr:`@send_task` instead.
+
+- ``celery.decorators``
+
+    See :ref:`deprecate-compat-task-modules`
+
+- ``celery.log``
+
+    Use :attr:`@log` instead.
+
+- ``celery.messaging``
+
+    Use :attr:`@amqp` instead.
+
+- ``celery.registry``
+
+    Use :mod:`celery.app.registry` instead.
+
+- ``celery.task.control``
+
+    Use :attr:`@control` instead.
+
+- ``celery.task.schedules``
+
+    Use :mod:`celery.schedules` instead.
+
+- ``celery.task.chords``
+
+    Use :func:`celery.chord` instead.
+
 .. _deprecations-v2.0:
 
 Removals for version 2.0

+ 9 - 3
docs/reference/celery.rst

@@ -102,11 +102,17 @@ and creating Celery applications.
 
     .. automethod:: finalize
 
-    .. autodata:: on_configure
+    .. data:: on_configure
 
-    .. autodata:: on_after_configure
+        Signal sent when app is loading configuration.
 
-    .. autodata:: on_after_finalize
+    .. data:: on_after_configure
+
+        Signal sent after app has prepared the configuration.
+
+    .. data:: on_after_finalize
+
+        Signal sent after app has been finalized.
 
 Canvas primitives
 -----------------