Ask Solem преди 13 години
родител
ревизия
6f4a6e2327
променени са 2 файла, в които са добавени 7 реда и са изтрити 10 реда
  1. 5 10
      Changelog
  2. 2 0
      celery/datastructures.py

+ 5 - 10
Changelog

@@ -64,20 +64,15 @@ News
 
 
     To enable UTC you have to set :setting:`CELERY_ENABLE_UTC`::
     To enable UTC you have to set :setting:`CELERY_ENABLE_UTC`::
 
 
-        CELERY_ENABLE_UTC
+        CELERY_ENABLE_UTC = True
 
 
-    With that enabled dates and times in task message will now be
+    With that enabled dates and times in task messages will be
     converted to UTC, and then converted back to the local timezone
     converted to UTC, and then converted back to the local timezone
     when received by a worker.
     when received by a worker.
 
 
-    You can also change the local timezone by the :setting:`CELERY_TIMEZONE`
-    setting. Custom timezones requires the :mod:`pytz` library to be installed.
-
-    .. note::
-
-        A new ``utc`` header extension has been added to the task message
-        format.  It is a boolean that if set means the timezone of dates
-        and times in the message are in UTC.
+    You can change the local timezone with the :setting:`CELERY_TIMEZONE`
+    setting.  Custom timezones requires the :mod:`pytz` library to
+    be installed.
 
 
 * New Message Signing Serializer.
 * New Message Signing Serializer.
 
 

+ 2 - 0
celery/datastructures.py

@@ -19,6 +19,8 @@ import traceback
 from itertools import chain
 from itertools import chain
 from threading import RLock
 from threading import RLock
 
 
+from kombu.utils.limits import TokenBucket  # noqa
+
 from .utils.compat import UserDict, OrderedDict
 from .utils.compat import UserDict, OrderedDict