Debian Codegraph @

docs/history/changelog-4.2.rst

raw
1 .. _changelog-4.2:
2
3 ================
4 Change history
5 ================
6
7 This document contains change notes for bugfix releases in
8 the 4.2.x series, please see :ref:`whatsnew-4.2` for
9 an overview of what's new in Celery 4.2.
10
11 4.2.1
12 =====
13 :release-date: 2018-07-18 11:00 AM IST
14 :release-by: Omer Katz
15
16 - **Result Backend**: Fix deserialization of exceptions that are present in the producer codebase but not in the consumer codebase.
17
18 Contributed by **John Arnold**
19
20 - **Message Protocol Compatibility**: Fix error caused by an invalid (None) timelimit value in the message headers when migrating messages from 3.x to 4.x.
21
22 Contributed by **Robert Kopaczewski**
23
24 - **Result Backend**: Fix serialization of exception arguments when exception arguments are not JSON serializable by default.
25
26 Contributed by **Tom Booth**
27
28 - **Worker**: Fixed multiple issues with rate limited tasks
29
30 Maintain scheduling order.
31 Fix possible scheduling of a :class:`celery.worker.request.Request` with the wrong :class:`kombu.utils.limits.TokenBucket` which could cause tasks' rate limit to behave incorrectly.
32 Fix possible duplicated execution of tasks that were rate limited or if ETA/Countdown was provided for them.
33
34 Contributed by :github_user:`ideascf`
35
36 - **Worker**: Defensively handle invalid timelimit header values in requests.
37
38 Contributed by **Omer Katz**
39
40 Documentation fixes:
41
42
43 - **Matt Wiens**
44 - **Seunghun Lee**
45 - **Lewis M. Kabui**
46 - **Prathamesh Salunkhe**
47
48 4.2.0
49 =====
50 :release-date: 2018-06-10 21:30 PM IST
51 :release-by: Omer Katz
52
53 - **Task**: Add ``ignore_result`` as task execution option (#4709, #3834)
54
55 Contributed by **Andrii Kostenko** and **George Psarakis**.
56
57 - **Redis Result Backend**: Do not create PubSub subscriptions when results are ignored (#4709, #3834)
58
59 Contributed by **Andrii Kostenko** and **George Psarakis**.
60
61 - **Redis Result Backend**: Result consumer always unsubscribes when task state is ready (#4666)
62
63 Contributed by **George Psarakis**.
64
65 - **Development/Testing**: Add docker-compose and base Dockerfile for development (#4482)
66
67 Contributed by **Chris Mitchell**.
68
69 - **Documentation/Sphinx**: Teach autodoc to document tasks if undoc-members is not set (#4588)
70
71 Contributed by **Leo Singer**.
72
73 - **Documentation/Sphinx**: Put back undoc-members option in sphinx test (#4586)
74
75 Contributed by **Leo Singer**.
76
77 - **Documentation/Sphinx**: Sphinx autodoc picks up tasks automatically only if `undoc-members` is set (#4584)
78
79 Contributed by **Leo Singer**.
80
81 - **Task**: Fix shadow_name issue when using previous version Task class (#4572)
82
83 Contributed by :github_user:`pachewise`.
84
85 - **Task**: Add support for bound tasks as `link_error` parameter (Fixes #3723) (#4545)
86
87 Contributed by :github_user:`brabiega`.
88
89 - **Deployment**: Add a command line option for setting the Result Backend URL (#4549)
90
91 Contributed by :github_user:`y0ngdi`.
92
93 - **CI**: Enable pip cache in appveyor build (#4546)
94
95 Contributed by **Thijs Triemstra**.
96
97 - **Concurrency/Asynpool**: Fix errno property name shadowing.
98
99 Contributed by **Omer Katz**.
100
101 - **DynamoDB Backend**: Configurable endpoint URL (#4532)
102
103 Contributed by **Bohdan Rybak**.
104
105 - **Timezones**: Correctly detect UTC timezone and timezone from settings (Fixes #4517) (#4519)
106
107 Contributed by :github_user:`last-partizan`.
108
109 - **Control**: Cleanup the mailbox's producer pool after forking (#4472)
110
111 Contributed by **Nick Eaket**.
112
113 - **Documentation**: Start Celery and Celery Beat on Azure WebJob (#4484)
114
115 Contributed by **PauloPeres**.
116
117 - **Celery Beat**: Schedule due tasks on startup, after Beat restart has occurred (#4493)
118
119 Contributed by **Igor Kasianov**.
120
121 - **Worker**: Use absolute time when task is accepted by worker pool (#3684)
122
123 Contributed by **Régis Behmo**.
124
125 - **Canvas**: Propagate arguments to chains inside groups (#4481)
126
127 Contributed by **Chris Mitchell**.
128
129 - **Canvas**: Fix `Task.replace` behavior in nested chords (fixes #4368) (#4369)
130
131 Contributed by **Denis Shirokov** & **Alex Hill**.
132
133 - **Installation**: Pass python_requires argument to setuptools (#4479)
134
135 Contributed by **Jon Dufresne**.
136
137 - **Message Protocol Compatibility**: Handle "hybrid" messages that have moved between Celery versions (#4358) (Issue #4356)
138
139 Contributed by **Russell Keith-Magee**.
140
141 - **Canvas**: request on_timeout now ignores soft time limit exception (fixes #4412) (#4473)
142
143 Contributed by **Alex Garel**.
144
145 - **Redis Result Backend**: Integration test to verify PubSub unsubscriptions (#4468)
146
147 Contributed by **George Psarakis**.
148
149 - **Message Protocol Properties**: Allow the shadow keyword argument and the shadow_name method to set shadow properly (#4381)
150
151 Contributed by :github_user:`hclihn`.
152
153 - **Canvas**: Run chord_unlock on same queue as chord body (#4448) (Issue #4337)
154
155 Contributed by **Alex Hill**.
156
157 - **Canvas**: Support chords with empty header group (#4443)
158
159 Contributed by **Alex Hill**.
160
161 - **Timezones**: make astimezone call in localize more safe (#4324)
162
163 Contributed by **Matt Davis**.
164
165 - **Canvas**: Fix length-1 and nested chords (#4437) (Issues #4393, #4055, #3885, #3597, #3574, #3323, #4301)
166
167 Contributed by **Alex Hill**.
168
169 - **CI**: Run `Openstack Bandit <https://pypi.org/project/bandit/1.0.1/>`_ in Travis CI in order to detect security issues.
170
171 Contributed by **Omer Katz**.
172
173 - **CI**: Run `isort <https://github.com/timothycrosley/isort>`_ in Travis CI in order to lint Python **import** statements.
174
175 Contributed by **Omer Katz**.
176
177 - **Canvas**: Resolve TypeError on `.get` from nested groups (#4432) (Issue #4274)
178
179 Contributed by **Misha Wolfson**.
180
181 - **CouchDB Backend**: Correct CouchDB key string type for Python 2/3 compatibility (#4166)
182
183 Contributed by :github_user:`fmind` && **Omer Katz**.
184
185 - **Group Result**: Fix current_app fallback in GroupResult.restore() (#4431)
186
187 Contributed by **Alex Hill**.
188
189 - **Consul Backend**: Correct key string type for Python 2/3 compatibility (#4416)
190
191 Contributed by **Wido den Hollander**.
192
193 - **Group Result**: Correctly restore an empty GroupResult (#2202) (#4427)
194
195 Contributed by **Alex Hill** & **Omer Katz**.
196
197 - **Result**: Disable synchronous waiting for sub-tasks on eager mode(#4322)
198
199 Contributed by **Denis Podlesniy**.
200
201 - **Celery Beat**: Detect timezone or Daylight Saving Time changes (#1604) (#4403)
202
203 Contributed by **Vincent Barbaresi**.
204
205 - **Canvas**: Fix append to an empty chain. Fixes #4047. (#4402)
206
207 Contributed by **Omer Katz**.
208
209 - **Task**: Allow shadow to override task name in trace and logging messages. (#4379)
210
211 Contributed by :github_user:`hclihn`.
212
213 - **Documentation/Sphinx**: Fix getfullargspec Python 2.x compatibility in contrib/sphinx.py (#4399)
214
215 Contributed by **Javier Martin Montull**.
216
217 - **Documentation**: Updated installation instructions for SQS broker (#4382)
218
219 Contributed by **Sergio Fernandez**.
220
221 - **Celery Beat**: Better equality comparison for ScheduleEntry instances (#4312)
222
223 Contributed by :github_user:`mariia-zelenova`.
224
225 - **Task**: Adding 'shadow' property to as_task_v2 (#4350)
226
227 Contributed by **Marcelo Da Cruz Pinto**.
228
229 - Try to import directly, do not use deprecated imp method (#4216)
230
231 Contributed by **Tobias Kunze**.
232
233 - **Task**: Enable `kwargsrepr` and `argsrepr` override for modifying task argument representation (#4260)
234
235 Contributed by **James M. Allen**.
236
237 - **Result Backend**: Add Redis Sentinel backend (#4144)
238
239 Contributed by **Geoffrey Bauduin**.
240
241 - Use unique time values for Collections/LimitedSet (#3879 and #3891) (#3892)
242
243 Contributed by :github_user:`lead2gold`.
244
245 - **CI**: Report coverage for all result backends.
246
247 Contributed by **Omer Katz**.
248
249 - **Django**: Use Django DB max age connection setting (fixes #4116) (#4292)
250
251 Contributed by **Marco Schweighauser**.
252
253 - **Canvas**: Properly take into account chain tasks link_error (#4240)
254
255 Contributed by :github_user:`agladkov`.
256
257 - **Canvas**: Allow to create group with single task (fixes issue #4255) (#4280)
258
259 Contributed by :github_user:`agladkov`.
260
261 - **Canvas**: Copy dictionary parameter in chord.from_dict before modifying (fixes issue #4223) (#4278)
262
263 Contributed by :github_user:`agladkov`.
264
265 - **Results Backend**: Add Cassandra options (#4224)
266
267 Contributed by **Scott Cooper**.
268
269 - **Worker**: Apply rate limiting for tasks with ETA (#4251)
270
271 Contributed by :github_user:`arpanshah29`.
272
273 - **Celery Beat**: support scheduler entries without a schedule (#4235)
274
275 Contributed by **Markus Kaiserswerth**.
276
277 - **SQS Broker**: Updated SQS requirements file with correct boto3 version (#4231)
278
279 Contributed by **Alejandro Varas**.
280
281 - Remove unused code from _create_app contextmanager (#4204)
282
283 Contributed by **Ryan P Kilby**.
284
285 - **Group Result**: Modify GroupResult.as_tuple() to include parent (fixes #4106) (#4205)
286
287 Contributed by :github_user:`pachewise`.
288
289 - **Beat**: Set default scheduler class in beat command. (#4189)
290
291 Contributed by :github_user:`Kxrr`.
292
293 - **Worker**: Retry signal receiver after raised exception (#4192)
294
295 Contributed by **David Davis**.
296
297 - **Task**: Allow custom Request class for tasks (#3977)
298
299 Contributed by **Manuel Vázquez Acosta**.
300
301 - **Django**: Django fixup should close all cache backends (#4187)
302
303 Contributed by **Raphaël Riel**.
304
305 - **Deployment**: Adds stopasgroup to the supervisor scripts (#4200)
306
307 Contributed by :github_user:`martialp`.
308
309 - Using Exception.args to serialize/deserialize exceptions (#4085)
310
311 Contributed by **Alexander Ovechkin**.
312
313 - **Timezones**: Correct calculation of application current time with timezone (#4173)
314
315 Contributed by **George Psarakis**.
316
317 - **Remote Debugger**: Set the SO_REUSEADDR option on the socket (#3969)
318
319 Contributed by **Theodore Dubois**.
320
321 - **Django**: Celery ignores exceptions raised during `django.setup()` (#4146)
322
323 Contributed by **Kevin Gu**.
324
325 - Use heartbeat setting from application configuration for Broker connection (#4148)
326
327 Contributed by :github_user:`mperice`.
328
329 - **Celery Beat**: Fixed exception caused by next_transit receiving an unexpected argument. (#4103)
330
331 Contributed by **DDevine**.
332
333 - **Task** Introduce exponential backoff with Task auto-retry (#4101)
334
335 Contributed by **David Baumgold**.
336
337 - **AsyncResult**: Remove weak-references to bound methods in AsyncResult promises. (#4131)
338
339 Contributed by **Vinod Chandru**.
340
341 - **Development/Testing**: Allow eager application of canvas structures (#4576)
342
343 Contributed by **Nicholas Pilon**.
344
345 - **Command Line**: Flush stderr before exiting with error code 1.
346
347 Contributed by **Antonin Delpeuch**.
348
349 - **Task**: Escapes single quotes in kwargsrepr strings.
350
351 Contributed by **Kareem Zidane**
352
353 - **AsyncResult**: Restore ability to join over ResultSet after fixing celery/#3818.
354
355 Contributed by **Derek Harland**
356
357 - **Redis Results Backend**: Unsubscribe on message success.
358
359 Previously Celery would leak channels, filling the memory of the Redis instance.
360
361 Contributed by **George Psarakis**
362
363 - **Task**: Only convert eta to isoformat when it is not already a string.
364
365 Contributed by **Omer Katz**
366
367 - **Redis Results Backend**: The result_backend setting now supports rediss:// URIs
368
369 Contributed by **James Remeika**
370
371 - **Canvas** Keyword arguments are passed to tasks in chain as expected.
372
373 Contributed by :github_user:`tothegump`
374
375 - **Django** Fix a regression causing Celery to crash when using Django.
376
377 Contributed by **Jonas Haag**
378
379 - **Canvas** Chain with one task now runs as expected.
380
381 Contributed by :github_user:`tothegump`
382
383 - **Kombu** Celery 4.2 now requires Kombu 4.2 or better.
384
385 Contributed by **Omer Katz & Asif Saifuddin Auvi**
386
387 - `GreenletExit` is not in `__all__` in greenlet.py which can not be imported by Python 3.6.
388
389 The import was adjusted to work on Python 3.6 as well.
390
391 Contributed by **Hsiaoming Yang**
392
393 - Fixed a regression that occurred during the development of Celery 4.2 which caused `celery report` to crash when Django is installed.
394
395 Contributed by **Josue Balandrano Coronel**
396
397 - Matched the behavior of `GroupResult.as_tuple()` to that of `AsyncResult.as_tuple()`.
398
399 The group's parent is now serialized correctly.
400
401 Contributed by **Josue Balandrano Coronel**
402
403 - Use Redis coercion mechanism for converting URI query parameters.
404
405 Contributed by **Justin Patrin**
406
407 - Fixed the representation of `GroupResult`.
408
409 The dependency graph is now presented correctly.
410
411 Contributed by **Josue Balandrano Coronel**
412
413 Documentation, CI, Installation and Tests fixes:
414
415
416 - **Sammie S. Taunton**
417 - **Dan Wilson**
418 - :github_user:`pachewise`
419 - **Sergi Almacellas Abellana**
420 - **Omer Katz**
421 - **Alex Zaitsev**
422 - **Leo Singer**
423 - **Rachel Johnson**
424 - **Jon Dufresne**
425 - **Samuel Dion-Girardeau**
426 - **Ryan Guest**
427 - **Huang Huang**
428 - **Geoffrey Bauduin**
429 - **Andrew Wong**
430 - **Mads Jensen**
431 - **Jackie Leng**
432 - **Harry Moreno**
433 - :github_user:`michael-k`
434 - **Nicolas Mota**
435 - **Armenak Baburyan**
436 - **Patrick Zhang**
437 - :github_user:`anentropic`
438 - :github_user:`jairojair`
439 - **Ben Welsh**
440 - **Michael Peake**
441 - **Fengyuan Chen**
442 - :github_user:`arpanshah29`
443 - **Xavier Hardy**
444 - **Shitikanth**
445 - **Igor Kasianov**
446 - **John Arnold**
447 - :github_user:`dmollerm`
448 - **Robert Knight**
449 - **Asif Saifuddin Auvi**
450 - **Eduardo Ramírez**
451 - **Kamil Breguła**
452 - **Juan Gutierrez**