Prechádzať zdrojové kódy

Merge branch '3.0'

Conflicts:
	Changelog
	README.rst
	celery/__init__.py
	docs/includes/introduction.txt
	requirements/default.txt
	setup.cfg
Ask Solem 12 rokov pred
rodič
commit
c808b91c44

+ 3 - 2
celery/tests/backends/test_mongodb.py

@@ -99,7 +99,7 @@ class test_MongoBackend(AppCase):
 
             connection = self.backend._get_connection()
             mock_Connection.assert_called_once_with(
-                MONGODB_HOST, MONGODB_PORT)
+                MONGODB_HOST, MONGODB_PORT, max_pool_size=10)
             self.assertEquals(sentinel.connection, connection)
 
     def test_get_connection_no_connection_mongodb_uri(self):
@@ -112,7 +112,8 @@ class test_MongoBackend(AppCase):
             mock_Connection.return_value = sentinel.connection
 
             connection = self.backend._get_connection()
-            mock_Connection.assert_called_once_with(mongodb_uri)
+            mock_Connection.assert_called_once_with(
+                mongodb_uri, max_pool_size=10)
             self.assertEquals(sentinel.connection, connection)
 
     @patch('celery.backends.mongodb.MongoBackend._get_connection')

+ 43 - 10
docs/history/changelog-3.0.rst

@@ -1,23 +1,34 @@
-.. _changelog-3.0:
+.. _changelog:
 
 ================
  Change history
 ================
 
-This document contains change notes for bugfix releases in the 3.0.x series
-(Chiastic Slide), please see :ref:`whatsnew-3.0` for an overview of what's
-new in Celery 3.0.
-
-If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
-
 .. contents::
     :local:
 
+If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
+
 .. _version-3.0.13:
 
 3.0.13
 ======
-:release-date: 2012-11-30 XX:XX:XX X.X UTC
+:release-date: 2013-01-07 04:00:00 P.M UTC
+
+- Now depends on Kombu 2.5
+
+    - py-amqp has replaced amqplib as the default transport,
+      gaining support for AMQP 0.9, and the RabbitMQ extensions
+      including Consumer Cancel Notifications and heartbeats.
+
+    - support for multiple connection URLs for failover.
+
+    - Read more in the `Kombu 2.5 changelog`_.
+
+    .. _`Kombu 2.5 changelog`:
+        http://kombu.readthedocs.org/en/latest/changelog.html#version-2-5-0
+
+- Now depends on billiard 2.7.3.19
 
 - Fixed a deadlock issue that could occur when the producer pool
   inherited the connection pool instance of the parent process.
@@ -42,7 +53,6 @@ If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
             b12ead10-a622-4d44-86e9-3193a778f345,
             26c7a420-11f3-4b33-8fac-66cd3b62abfd]>
 
-
 - Chains can now chain other chains and use partial arguments (Issue #1057).
 
     Example:
@@ -78,12 +88,28 @@ If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
   (using ``result.ready()`` and friends, ``result.get()`` will not do this
   in this version).
 
+- Crontab schedule values can now "wrap around"
+
+    This means that values like ``11-1`` translates to ``[11, 12, 1]``.
+
+    Contributed by Loren Abrams.
+
+- multi stopwait command now shows the pid of processes.
+
+    Contributed by Loren Abrams.
+
 - Handling of ETA/countdown fixed when the :setting:`CELERY_ENABLE_UTC`
    setting is disabled (Issue #1065).
 
 - A number of uneeded properties were included in messages,
   caused by accidentally passing ``Queue.as_dict`` as message properties.
 
+- Rate limit values can now be float
+
+    This also extends the string format so that values like ``"0.5/s"`` works.
+
+    Contributed by Christoph Krybus
+
 - Fixed a typo in the broadcast routing documentation (Issue #1026).
 
 - Rewrote confusing section about idempotence in the task user guide.
@@ -102,6 +128,11 @@ If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
 
     Contributed by Thomas Grainger.
 
+- Mongodb backend: Connection ``max_pool_size`` can now be set in
+  :setting:`CELERY_MONGODB_BACKEND_SETTINGS`.
+
+    Contributed by Craig Younkins.
+
 - Fixed problem when using earlier versions of :mod:`pytz`.
 
     Fix contributed by Vlad.
@@ -117,7 +148,6 @@ If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
   the addition of new queues so that they survived connection failure
   (Issue #1079).
 
-.. _version-3.0.12:
 
 3.0.12
 ======
@@ -618,6 +648,8 @@ If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
 
 - Fixed broken ``dump_request`` example in the tasks guide.
 
+
+
 .. _version-3.0.5:
 
 3.0.5
@@ -775,6 +807,7 @@ If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
 
     The old names still work for backward compatibility.
 
+
 .. _version-3.0.3:
 
 3.0.3

+ 1 - 1
requirements/default.txt

@@ -1,3 +1,3 @@
 pytz
 billiard>=2.7.3.19
-kombu>=2.5.3
+kombu>=2.5.4

+ 1 - 1
setup.cfg

@@ -16,4 +16,4 @@ upload-dir = docs/.build/html
 [bdist_rpm]
 requires = pytz
            billiard >= 2.7.3.19
-           kombu >= 2.5.3
+           kombu >= 2.5.4