Ask Solem 15 vuotta sitten
vanhempi
commit
5d7819d5a3

+ 5 - 1
celery/utils/dispatch/saferef.py

@@ -46,6 +46,7 @@ class BoundMethodWeakref(object):
     function which together define the instance method.
 
     .. attribute:: key
+
         the identity key for the reference, calculated
         by the class's :meth:`calculate_key` method applied to the
         target instance method
@@ -60,15 +61,18 @@ class BoundMethodWeakref(object):
         as the on_delete parameters of :func:`safe_ref` calls.
 
     .. attribute:: weak_self
+
         weak reference to the target object
 
     .. attribute:: weak_func
+
         weak reference to the target function
 
     .. attribute:: _all_instances
+
         class attribute pointing to all live
         BoundMethodWeakref objects indexed by the class's
-        :meth:`calculate_key(target)` method applied to the target
+        ``calculate_key(target)`` method applied to the target
         objects. This weak value dictionary is used to
         short-circuit creation so that multiple references
         to the same (object, function) pair produce the

+ 5 - 7
docs/configuration.rst

@@ -93,7 +93,7 @@ Database backend settings
 
 Please see `Supported Databases`_ for a table of supported databases.
 To use this backend you need to configure it with an
-`SQLAlchemy Connection String`_, some examples include:
+`Connection String`_, some examples include:
 
 .. code-block:: python
 
@@ -109,7 +109,7 @@ To use this backend you need to configure it with an
     # oracle
     CELERY_RESULT_DBURI = "oracle://scott:tiger@127.0.0.1:1521/sidname"
 
-See `SQLAlchemy Connection Strings`_ for more information about connection
+See `Connection String`_ for more information about connection
 strings.
 
 To specify additional SQLAlchemy database engine options you can use
@@ -118,14 +118,12 @@ the ``CELERY_RESULT_ENGINE_OPTIONS`` setting::
     # echo enables verbose logging from SQLAlchemy.
     CELERY_RESULT_ENGINE_OPTIONS = {"echo": True}
 
-.. _`SQLAlchemy`:
-    http://www.sqlalchemy.org
 .. _`Supported Databases`:
     http://www.sqlalchemy.org/docs/dbengine.html#supported-databases
-.. _`SQLAlchemy Connection String`:
-    http://www.sqlalchemy.org/docs/dbengine.html#create-engine-url-arguments
-.. _`SQLAlchemy Connection Strings`:
+
+.. _`Connection String`:
     http://www.sqlalchemy.org/docs/dbengine.html#create-engine-url-arguments
+
 Please see the Django ORM database settings documentation:
 http://docs.djangoproject.com/en/dev/ref/settings/#database-engine
 

+ 1 - 0
docs/internals/reference/index.rst

@@ -23,6 +23,7 @@
     celery.beat
     celery.backends
     celery.backends.base
+    celery.backends.database
     celery.backends.amqp
     celery.backends.mongodb
     celery.backends.pyredis