Debian Codegraph @

docs/history/changelog-2.5.rst

raw
1 .. _changelog-2.5:
2
3 ===============================
4 Change history for Celery 2.5
5 ===============================
6
7 This document contains change notes for bugfix releases in the 2.5.x series,
8 please see :ref:`whatsnew-2.5` for an overview of what's
9 new in Celery 2.5.
10
11 If you're looking for versions prior to 2.5 you should visit our
12 :ref:`history` of releases.
13
14 .. contents::
15 :local:
16
17 .. _version-2.5.5:
18
19 2.5.5
20 =====
21 :release-date: 2012-06-06 04:00 p.m. BST
22 :release-by: Ask Solem
23
24 This is a dummy release performed for the following goals:
25
26 - Protect against force upgrading to Kombu 2.2.0
27 - Version parity with :pypi:`django-celery`
28
29 .. _version-2.5.3:
30
31 2.5.3
32 =====
33 :release-date: 2012-04-16 07:00 p.m. BST
34 :release-by: Ask Solem
35
36 * A bug causes messages to be sent with UTC time-stamps even though
37 :setting:`CELERY_ENABLE_UTC` wasn't enabled (Issue #636).
38
39 * ``celerybeat``: No longer crashes if an entry's args is set to None
40 (Issue #657).
41
42 * Auto-reload didn't work if a module's ``__file__`` attribute
43 was set to the modules ``.pyc`` file. (Issue #647).
44
45 * Fixes early 2.5 compatibility where ``__package__`` doesn't exist
46 (Issue #638).
47
48 .. _version-2.5.2:
49
50 2.5.2
51 =====
52 :release-date: 2012-04-13 04:30 p.m. GMT
53 :release-by: Ask Solem
54
55 .. _v252-news:
56
57 News
58 ----
59
60 - Now depends on Kombu 2.1.5.
61
62 - Django documentation has been moved to the main Celery docs.
63
64 See :ref:`django`.
65
66 - New :signal:`celeryd_init` signal can be used to configure workers
67 by hostname.
68
69 - Signal.connect can now be used as a decorator.
70
71 Example:
72
73 .. code-block:: python
74
75 from celery.signals import task_sent
76
77 @task_sent.connect
78 def on_task_sent(**kwargs):
79 print('sent task: %r' % (kwargs,))
80
81 - Invalid task messages are now rejected instead of acked.
82
83 This means that they will be moved to the dead-letter queue
84 introduced in the latest RabbitMQ version (but must be enabled
85 manually, consult the RabbitMQ documentation).
86
87 - Internal logging calls has been cleaned up to work
88 better with tools like Sentry.
89
90 Contributed by David Cramer.
91
92 - New method ``subtask.clone()`` can be used to clone an existing
93 subtask with augmented arguments/options.
94
95 Example:
96
97 .. code-block:: pycon
98
99 >>> s = add.subtask((5,))
100 >>> new = s.clone(args=(10,), countdown=5})
101 >>> new.args
102 (10, 5)
103
104 >>> new.options
105 {'countdown': 5}
106
107 - Chord callbacks are now triggered in eager mode.
108
109 .. _v252-fixes:
110
111 Fixes
112 -----
113
114 - Programs now verifies that the pidfile is actually written correctly
115 (Issue #641).
116
117 Hopefully this will crash the worker immediately if the system
118 is out of space to store the complete pidfile.
119
120 In addition, we now verify that existing pidfiles contain
121 a new line so that a partially written pidfile is detected as broken,
122 as before doing:
123
124 .. code-block:: console
125
126 $ echo -n "1" > celeryd.pid
127
128 would cause the worker to think that an existing instance was already
129 running (init has pid 1 after all).
130
131 - Fixed 2.5 compatibility issue with use of print_exception.
132
133 Fix contributed by Martin Melin.
134
135 - Fixed 2.5 compatibility issue with imports.
136
137 Fix contributed by Iurii Kriachko.
138
139 - All programs now fix up ``__package__`` when called as main.
140
141 This fixes compatibility with Python 2.5.
142
143 Fix contributed by Martin Melin.
144
145 - [celery control|inspect] can now be configured on the command-line.
146
147 Like with the worker it is now possible to configure Celery settings
148 on the command-line for celery control|inspect
149
150 .. code-block:: console
151
152 $ celery inspect -- broker.pool_limit=30
153
154 - Version dependency for :pypi:`python-dateutil` fixed to be strict.
155
156 Fix contributed by Thomas Meson.
157
158 - ``Task.__call__`` is now optimized away in the task tracer
159 rather than when the task class is created.
160
161 This fixes a bug where a custom __call__ may mysteriously disappear.
162
163 - Auto-reload's ``inotify`` support has been improved.
164
165 Contributed by Mher Movsisyan.
166
167 - The Django broker documentation has been improved.
168
169 - Removed confusing warning at top of routing user guide.
170
171 .. _version-2.5.1:
172
173 2.5.1
174 =====
175 :release-date: 2012-03-01 01:00 p.m. GMT
176 :release-by: Ask Solem
177
178 .. _v251-fixes:
179
180 Fixes
181 -----
182
183 * Eventlet/Gevent: A small typo caused the worker to hang when eventlet/gevent
184 was used, this was because the environment wasn't monkey patched
185 early enough.
186
187 * Eventlet/Gevent: Another small typo caused the mediator to be started
188 with eventlet/gevent, which would make the worker sometimes hang at shutdown.
189
190 * :mod:`multiprocessing`: Fixed an error occurring if the pool was stopped
191 before it was properly started.
192
193 * Proxy objects now redirects ``__doc__`` and ``__name__`` so ``help(obj)``
194 works.
195
196 * Internal timer (timer2) now logs exceptions instead of swallowing them
197 (Issue #626).
198
199 * celery shell: can now be started with
200 :option:`--eventlet <celery shell --eventlet>` or
201 :option:`--gevent <celery shell --gevent>` options to apply their
202 monkey patches.
203
204 .. _version-2.5.0:
205
206 2.5.0
207 =====
208 :release-date: 2012-02-24 04:00 p.m. GMT
209 :release-by: Ask Solem
210
211 See :ref:`whatsnew-2.5`.
212
213 Since the changelog has gained considerable size, we decided to
214 do things differently this time: by having separate "what's new"
215 documents for major version changes.
216
217 Bugfix releases will still be found in the changelog.
218