forked from celery/celery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChangelog
1701 lines (1078 loc) · 49.8 KB
/
Changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.. _changelog:
================
Change history
================
This document contains change notes for bugfix releases in the 3.1.x series
(Cipater), please see :ref:`whatsnew-3.1` for an overview of what's
new in Celery 3.1.
.. _version-3.1.24:
3.1.24
======
:release-date: 2016-09-30 04:21 PM PDT
:release-by: Ask Solem
- **Requirements**
- Now depends on :ref:`Kombu 3.0.36 <kombu:version-3.0.36>`.
- Now supports Task protocol 2 from the future 4.0 release.
Workers running 3.1.24 are now able to process messages
sent using the `new task message protocol`_ to be introduced
in Celery 4.0.
Users upgrading to Celery 4.0 when this is released are encouraged
to upgrade to this version as an intermediate step, as this
means workers not yet upgraded will be able to process
messages from clients/workers running 4.0.
.. _`new task message protocol`:
http://docs.celeryproject.org/en/master/internals/protocol.html#version-2
- ``Task.send_events`` can now be set to disable sending of events
for that task only.
Example when defining the task:
.. code-block:: python
@app.task(send_events=False)
def add(x, y):
return x + y
- **Utils**: Fixed compatibility with recent :pypi:`psutil` versions
(Issue #3262).
- **Canvas**: Chord now forwards partial arguments to its subtasks.
Fix contributed by Tayfun Sen.
- **App**: Arguments to app such as ``backend``, ``broker``, etc
are now pickled and sent to the child processes on Windows.
Fix contributed by Jeremy Zafran.
- **Deployment**: Generic init scripts now supports being symlinked
in runlevel directories (Issue #3208).
- **Deployment**: Updated CentOS scripts to work with CentOS 7.
Contributed by Joe Sanford.
- **Events**: The curses monitor no longer crashes when the
result of a task is empty.
Fix contributed by Dongweiming.
- **Worker**: ``repr(worker)`` would crash when called early
in the startup process (Issue #2514).
- **Tasks**: GroupResult now defines __bool__ and __nonzero__.
This is to fix an issue where a ResultSet or GroupResult with an empty
result list are not properly tupled with the as_tuple() method when it is
a parent result. This is due to the as_tuple() method performing a logical
and operation on the ResultSet.
Fix contributed by Colin McIntosh.
- **Worker**: Fixed wrong values in autoscale related logging message.
Fix contributed by ``@raducc``.
- Documentation improvements by
* Alexandru Chirila
* Michael Aquilina
* Mikko Ekström
* Mitchel Humpherys
* Thomas A. Neil
* Tiago Moreira Vieira
* Yuriy Syrovetskiy
* ``@dessant``
.. _version-3.1.23:
3.1.23
======
:release-date: 2016-03-09 06:00 P.M PST
:release-by: Ask Solem
- **Programs**: Last release broke support for the ``--hostnmame`` argument
to :program:`celery multi` and :program:`celery worker --detach`
(Issue #3103).
- **Results**: MongoDB result backend could crash the worker at startup
if not configured using an URL.
.. _version-3.1.22:
3.1.22
======
:release-date: 2016-03-07 01:30 P.M PST
:release-by: Ask Solem
- **Programs**: The worker would crash immediately on startup on
``backend.as_uri()`` when using some result backends (Issue #3094).
- **Programs**: :program:`celery multi`/:program:`celery worker --detach`
would create an extraneous logfile including literal formats (e.g. ``%I``)
in the filename (Issue #3096).
.. _version-3.1.21:
3.1.21
======
:release-date: 2016-03-04 11:16 A.M PST
:release-by: Ask Solem
- **Requirements**
- Now depends on :ref:`Kombu 3.0.34 <kombu:version-3.0.34>`.
- Now depends on :mod:`billiard` 3.3.0.23.
- **Prefork pool**: Fixes 100% CPU loop on Linux epoll (Issue #1845).
Also potential fix for: Issue #2142, Issue #2606
- **Prefork pool**: Fixes memory leak related to processes exiting
(Issue #2927).
- **Worker**: Fixes crash at startup when trying to censor passwords
in MongoDB and Cache result backend URLs (Issue #3079, Issue #3045,
Issue #3049, Issue #3068, Issue #3073).
Fix contributed by Maxime Verger.
- **Task**: An exception is now raised if countdown/expires is less
than -2147483648 (Issue #3078).
- **Programs**: :program:`celery shell --ipython` now compatible with newer
IPython versions.
- **Programs**: The DuplicateNodeName warning emitted by inspect/control
now includes a list of the node names returned.
Contributed by Sebastian Kalinowski.
- **Utils**: The ``.discard(item)`` method of
:class:`~celery.datastructures.LimitedSet` did not actually remove the item
(Issue #3087).
Fix contributed by Dave Smith.
- **Worker**: Node name formatting now emits less confusing error message
for unmatched format keys (Issue #3016).
- **Results**: amqp/rpc backends: Fixed deserialization of JSON exceptions
(Issue #2518).
Fix contributed by Allard Hoeve.
- **Prefork pool**: The `process inqueue damaged` error message now includes
the original exception raised.
- **Documentation**: Includes improvements by:
- Jeff Widman.
.. _version-3.1.20:
3.1.20
======
:release-date: 2016-01-22 06:50 P.M UTC
:release-by: Ask Solem
- **Requirements**
- Now depends on :ref:`Kombu 3.0.33 <kombu:version-3.0.33>`.
- Now depends on :mod:`billiard` 3.3.0.22.
Includes binary wheels for Microsoft Windows x86 and x86_64!
- **Task**: Error emails now uses ``utf-8`` charset by default (Issue #2737).
- **Task**: Retry now forwards original message headers (Issue #3017).
- **Worker**: Bootsteps can now hook into ``on_node_join``/``leave``/``lost``.
See :ref:`extending-consumer-gossip` for an example.
- **Events**: Fixed handling of DST timezones (Issue #2983).
- **Results**: Redis backend stopped respecting certain settings.
Contributed by Jeremy Llewellyn.
- **Results**: Database backend now properly supports JSON exceptions
(Issue #2441).
- **Results**: Redis ``new_join`` did not properly call task errbacks on chord
error (Issue #2796).
- **Results**: Restores Redis compatibility with redis-py < 2.10.0
(Issue #2903).
- **Results**: Fixed rare issue with chord error handling (Issue #2409).
- **Tasks**: Using queue-name values in :setting:`CELERY_ROUTES` now works
again (Issue #2987).
- **General**: Result backend password now sanitized in report output
(Issue #2812, Issue #2004).
- **Configuration**: Now gives helpful error message when the result backend
configuration points to a module, and not a class (Issue #2945).
- **Results**: Exceptions sent by JSON serialized workers are now properly
handled by pickle configured workers.
- **Programs**: ``celery control autoscale`` now works (Issue #2950).
- **Programs**: ``celery beat --detached`` now runs after fork callbacks.
- **General**: Fix for LRU cache implementation on Python 3.5 (Issue #2897).
Contributed by Dennis Brakhane.
Python 3.5's ``OrderedDict`` does not allow mutation while it is being
iterated over. This breaks "update" if it is called with a dict
larger than the maximum size.
This commit changes the code to a version that does not iterate over
the dict, and should also be a little bit faster.
- **Init scripts**: The beat init script now properly reports service as down
when no pid file can be found.
Eric Zarowny
- **Beat**: Added cleaning of corrupted scheduler files for some storage
backend errors (Issue #2985).
Fix contributed by Aleksandr Kuznetsov.
- **Beat**: Now syncs the schedule even if the schedule is empty.
Fix contributed by Colin McIntosh.
- **Supervisord**: Set higher process priority in supervisord example.
Contributed by George Tantiras.
- **Documentation**: Includes improvements by:
- Bryson
- Caleb Mingle
- Christopher Martin
- Dieter Adriaenssens
- Jason Veatch
- Jeremy Cline
- Juan Rossi
- Kevin Harvey
- Kevin McCarthy
- Kirill Pavlov
- Marco Buttu
- Mayflower
- Mher Movsisyan
- Michael Floering
- michael-k
- Nathaniel Varona
- Rudy Attias
- Ryan Luckie
- Steven Parker
- squfrans
- Tadej Janež
- TakesxiSximada
- Tom S
.. _version-3.1.19:
3.1.19
======
:release-date: 2015-10-26 01:00 P.M UTC
:release-by: Ask Solem
- **Requirements**
- Now depends on :ref:`Kombu 3.0.29 <kombu:version-3.0.29>`.
- Now depends on :mod:`billiard` 3.3.0.21.
- **Results**: Fixed MongoDB result backend URL parsing problem
(Issue celery/kombu#375).
- **Worker**: Task request now properly sets ``priority`` in delivery_info.
Fix contributed by Gerald Manipon.
- **Beat**: PyPy shelve may raise ``KeyError`` when setting keys
(Issue #2862).
- **Programs**: :program:`celery beat --deatched` now working on PyPy.
Fix contributed by Krzysztof Bujniewicz.
- **Results**: Redis result backend now ensures all pipelines are cleaned up.
Contributed by Justin Patrin.
- **Results**: Redis result backend now allows for timeout to be set in the
query portion of the result backend URL.
E.g. ``CELERY_RESULT_BACKEND = 'redis://?timeout=10'``
Contributed by Justin Patrin.
- **Results**: ``result.get`` now properly handles failures where the
exception value is set to :const:`None` (Issue #2560).
- **Prefork pool**: Fixed attribute error ``proc.dead``.
- **Worker**: Fixed worker hanging when gossip/heartbeat disabled
(Issue #1847).
Fix contributed by Aaron Webber and Bryan Helmig.
- **Results**: MongoDB result backend now supports pymongo 3.x
(Issue #2744).
Fix contributed by Sukrit Khera.
- **Results**: RPC/amqp backends did not deserialize exceptions properly
(Issue #2691).
Fix contributed by Sukrit Khera.
- **Programs**: Fixed problem with :program:`celery amqp`'s
``basic_publish`` (Issue #2013).
- **Worker**: Embedded beat now properly sets app for thread/process
(Issue #2594).
- **Documentation**: Many improvements and typos fixed.
Contributions by:
Carlos Garcia-Dubus
D. Yu
jerry
Jocelyn Delalande
Josh Kupershmidt
Juan Rossi
kanemra
Paul Pearce
Pavel Savchenko
Sean Wang
Seungha Kim
Zhaorong Ma
.. _version-3.1.18:
3.1.18
======
:release-date: 2015-04-22 05:30 P.M UTC
:release-by: Ask Solem
- **Requirements**
- Now depends on :ref:`Kombu 3.0.25 <kombu:version-3.0.25>`.
- Now depends on :mod:`billiard` 3.3.0.20.
- **Django**: Now supports Django 1.8 (Issue #2536).
Fix contributed by Bence Tamas and Mickaël Penhard.
- **Results**: MongoDB result backend now compatible with pymongo 3.0.
Fix contributed by Fatih Sucu.
- **Tasks**: Fixed bug only happening when a task has multiple callbacks
(Issue #2515).
Fix contributed by NotSqrt.
- **Commands**: Preload options now support ``--arg value`` syntax.
Fix contributed by John Anderson.
- **Compat**: A typo caused ``celery.log.setup_logging_subsystem`` to be
undefined.
Fix contributed by Gunnlaugur Thor Briem.
- **init scripts**: The celerybeat generic init script now uses
``/bin/sh`` instead of bash (Issue #2496).
Fix contributed by Jelle Verstraaten.
- **Django**: Fixed a :exc:`TypeError` sometimes occurring in logging
when validating models.
Fix contributed by Alexander.
- **Commands**: Worker now supports new ``--executable`` argument that can
be used with ``--detach``.
Contributed by Bert Vanderbauwhede.
- **Canvas**: Fixed crash in chord unlock fallback task (Issue #2404).
- **Worker**: Fixed rare crash occurring with ``--autoscale`` enabled
(Issue #2411).
- **Django**: Properly recycle worker Django database connections when the
Django ``CONN_MAX_AGE`` setting is enabled (Issue #2453).
Fix contributed by Luke Burden.
.. _version-3.1.17:
3.1.17
======
:release-date: 2014-11-19 03:30 P.M UTC
:release-by: Ask Solem
.. admonition:: Do not enable the :setting:`CELERYD_FORCE_EXECV` setting!
Please review your configuration and disable this option if you're using the
RabbitMQ or Redis transport.
Keeping this option enabled after 3.1 means the async based prefork pool will
be disabled, which can easily cause instability.
- **Requirements**
- Now depends on :ref:`Kombu 3.0.24 <kombu:version-3.0.24>`.
Includes the new Qpid transport coming in Celery 3.2, backported to
support those who may still require Python 2.6 compatibility.
- Now depends on :mod:`billiard` 3.3.0.19.
- ``celery[librabbitmq]`` now depends on librabbitmq 1.6.1.
- **Task**: The timing of ETA/countdown tasks were off after the example ``LocalTimezone``
implementation in the Python documentation no longer works in Python 3.4.
(Issue #2306).
- **Task**: Raising :exc:`~celery.exceptions.Ignore` no longer sends
``task-failed`` event (Issue #2365).
- **Redis result backend**: Fixed unbound local errors.
Fix contributed by Thomas French.
- **Task**: Callbacks was not called properly if ``link`` was a list of
signatures (Issuse #2350).
- **Canvas**: chain and group now handles json serialized signatures
(Issue #2076).
- **Results**: ``.join_native()`` would accidentally treat the ``STARTED``
state as being ready (Issue #2326).
This could lead to the chord callback being called with invalid arguments
when using chords with the :setting:`CELERY_TRACK_STARTED` setting
enabled.
- **Canvas**: The ``chord_size`` attribute is now set for all canvas primitives,
making sure more combinations will work with the ``new_join`` optimization
for Redis (Issue #2339).
- **Task**: Fixed problem with app not being properly propagated to
``trace_task`` in all cases.
Fix contributed by kristaps.
- **Worker**: Expires from task message now associated with a timezone.
Fix contributed by Albert Wang.
- **Cassandra result backend**: Fixed problems when using detailed mode.
When using the Cassandra backend in detailed mode, a regression
caused errors when attempting to retrieve results.
Fix contributed by Gino Ledesma.
- **Mongodb Result backend**: Pickling the backend instance will now include
the original url (Issue #2347).
Fix contributed by Sukrit Khera.
- **Task**: Exception info was not properly set for tasks raising
:exc:`~celery.exceptions.Reject` (Issue #2043).
- **Worker**: Duplicates are now removed when loading the set of revoked tasks
from the worker state database (Issue #2336).
- **celery.contrib.rdb**: Fixed problems with ``rdb.set_trace`` calling stop
from the wrong frame.
Fix contributed by llllllllll.
- **Canvas**: ``chain`` and ``chord`` can now be immutable.
- **Canvas**: ``chord.apply_async`` will now keep partial args set in
``self.args`` (Issue #2299).
- **Results**: Small refactoring so that results are decoded the same way in
all result backends.
- **Logging**: The ``processName`` format was introduced in Py2.6.2 so for
compatibility this format is now excluded when using earlier versions
(Issue #1644).
.. _version-3.1.16:
3.1.16
======
:release-date: 2014-10-03 06:00 P.M UTC
:release-by: Ask Solem
- **Worker**: 3.1.15 broke ``-Ofair`` behavior (Issue #2286).
This regression could result in all tasks executing
in a single child process if ``-Ofair`` was enabled.
- **Canvas**: ``celery.signature`` now properly forwards app argument
in all cases.
- **Task**: ``.retry()`` did not raise the exception correctly
when called without a current exception.
Fix contributed by Andrea Rabbaglietti.
- **Worker**: The ``enable_events`` remote control command
disabled worker-related events by mistake (Issue #2272).
Fix contributed by Konstantinos Koukopoulos.
- **Django**: Adds support for Django 1.7 class names in INSTALLED_APPS
when using ``app.autodiscover_tasks()`` (Issue #2248).
- **Sphinx**: ``celery.contrib.sphinx`` now uses ``getfullargspec``
on Python 3 (Issue #2302).
- **Redis/Cache Backends**: Chords will now run at most once if one or more tasks
in the chord are executed multiple times for some reason.
.. _version-3.1.15:
3.1.15
======
:release-date: 2014-09-14 11:00 P.M UTC
:release-by: Ask Solem
- **Django**: Now makes sure ``django.setup()`` is called
before importing any task modules (Django 1.7 compatibility, Issue #2227)
- **Results**: ``result.get()`` was misbehaving by calling
``backend.get_task_meta`` in a finally call leading to
AMQP result backend queues not being properly cleaned up (Issue #2245).
.. _version-3.1.14:
3.1.14
======
:release-date: 2014-09-08 03:00 P.M UTC
:release-by: Ask Solem
- **Requirements**
- Now depends on :ref:`Kombu 3.0.22 <kombu:version-3.0.22>`.
- **Init scripts**: The generic worker init scripts ``status`` command
now gets an accurate pidfile list (Issue #1942).
- **Init scripts**: The generic beat script now implements the ``status``
command.
Contributed by John Whitlock.
- **Commands**: Multi now writes informational output to stdout instead of stderr.
- **Worker**: Now ignores not implemented error for ``pool.restart``
(Issue #2153).
- **Task**: Retry no longer raises retry exception when executed in eager
mode (Issue #2164).
- **AMQP Result backend**: Now ensured ``on_interval`` is called at least
every second for blocking calls to properly propagate parent errors.
- **Django**: Compatibility with Django 1.7 on Windows (Issue #2126).
- **Programs**: `--umask` argument can be now specified in both octal (if starting
with 0) or decimal.
.. _version-3.1.13:
3.1.13
======
Security Fixes
--------------
* [Security: `CELERYSA-0002`_] Insecure default umask.
The built-in utility used to daemonize the Celery worker service sets
an insecure umask by default (umask 0).
This means that any files or directories created by the worker will
end up having world-writable permissions.
Special thanks to Red Hat for originally discovering and reporting the
issue!
This version will no longer set a default umask by default, so if unset
the umask of the parent process will be used.
.. _`CELERYSA-0002`:
http://github.com/celery/celery/tree/master/docs/sec/CELERYSA-0002.txt
News
----
- **Requirements**
- Now depends on :ref:`Kombu 3.0.21 <kombu:version-3.0.21>`.
- Now depends on :mod:`billiard` 3.3.0.18.
- **App**: ``backend`` argument now also sets the :setting:`CELERY_RESULT_BACKEND`
setting.
- **Task**: ``signature_from_request`` now propagates ``reply_to`` so that
the RPC backend works with retried tasks (Issue #2113).
- **Task**: ``retry`` will no longer attempt to requeue the task if sending
the retry message fails.
Unrelated exceptions being raised could cause a message loop, so it was
better to remove this behavior.
- **Beat**: Accounts for standard 1ms drift by always waking up 0.010s
earlier.
This will adjust the latency so that the periodic tasks will not move
1ms after every invocation.
- Documentation fixes
Contributed by Yuval Greenfield, Lucas Wiman, nicholsonjf
- **Worker**: Removed an outdated assert statement that could lead to errors
being masked (Issue #2086).
.. _version-3.1.12:
3.1.12
======
:release-date: 2014-06-09 10:12 P.M UTC
:release-by: Ask Solem
- **Requirements**
Now depends on :ref:`Kombu 3.0.19 <kombu:version-3.0.19>`.
- **App**: Connections were not being closed after fork due to an error in the
after fork handler (Issue #2055).
This could manifest itself by causing framing errors when using RabbitMQ.
(``Unexpected frame``).
- **Django**: ``django.setup()`` was being called too late when
using Django 1.7 (Issue #1802).
- **Django**: Fixed problems with event timezones when using Django
(``Substantial drift``).
Celery did not take into account that Django modifies the
``time.timeone`` attributes and friends.
- **Canvas**: ``Signature.link`` now works when the link option is a scalar
value (Issue #2019).
- **Prefork pool**: Fixed race conditions for when file descriptors are
removed from the event loop.
Fix contributed by Roger Hu.
- **Prefork pool**: Improved solution for dividing tasks between child
processes.
This change should improve performance when there are many child
processes, and also decrease the chance that two subsequent tasks are
written to the same child process.
- **Worker**: Now ignores unknown event types, instead of crashing.
Fix contributed by Illes Solt.
- **Programs**: :program:`celery worker --detach` no longer closes open file
descriptors when :envvar:`C_FAKEFORK` is used so that the workers output
can be seen.
- **Programs**: The default working directory for :program:`celery worker
--detach` is now the current working directory, not ``/``.
- **Canvas**: ``signature(s, app=app)`` did not upgrade serialized signatures
to their original class (``subtask_type``) when the ``app`` keyword argument
was used.
- **Control**: The ``duplicate nodename`` warning emitted by control commands
now shows the duplicate node name.
- **Tasks**: Can now call ``ResultSet.get()`` on a result set without members.
Fix contributed by Alexey Kotlyarov.
- **App**: Fixed strange traceback mangling issue for
``app.connection_or_acquire``.
- **Programs**: The :program:`celery multi stopwait` command is now documented
in usage.
- **Other**: Fixed cleanup problem with ``PromiseProxy`` when an error is
raised while trying to evaluate the promise.
- **Other**: The utility used to censor configuration values now handles
non-string keys.
Fix contributed by Luke Pomfrey.
- **Other**: The ``inspect conf`` command did not handle non-string keys well.
Fix contributed by Jay Farrimond.
- **Programs**: Fixed argument handling problem in
:program:`celery worker --detach`.
Fix contributed by Dmitry Malinovsky.
- **Programs**: :program:`celery worker --detach` did not forward working
directory option (Issue #2003).
- **Programs**: :program:`celery inspect registered` no longer includes
the list of built-in tasks.
- **Worker**: The ``requires`` attribute for boot steps were not being handled
correctly (Issue #2002).
- **Eventlet**: The eventlet pool now supports the ``pool_grow`` and
``pool_shrink`` remote control commands.
Contributed by Mher Movsisyan.
- **Eventlet**: The eventlet pool now implements statistics for
:program:``celery inspect stats``.
Contributed by Mher Movsisyan.
- **Documentation**: Clarified ``Task.rate_limit`` behavior.
Contributed by Jonas Haag.
- **Documentation**: ``AbortableTask`` examples now updated to use the new
API (Issue #1993).
- **Documentation**: The security documentation examples used an out of date
import.
Fix contributed by Ian Dees.
- **Init scripts**: The CentOS init scripts did not quote
:envvar:`CELERY_CHDIR`.
Fix contributed by ffeast.
.. _version-3.1.11:
3.1.11
======
:release-date: 2014-04-16 11:00 P.M UTC
:release-by: Ask Solem
- **Now compatible with RabbitMQ 3.3.0**
You need to run Celery 3.1.11 or later when using RabbitMQ 3.3,
and if you use the ``librabbitmq`` module you also have to upgrade
to librabbitmq 1.5.0:
.. code-block:: bash
$ pip install -U librabbitmq
- **Requirements**:
- Now depends on :ref:`Kombu 3.0.15 <kombu:version-3.0.15>`.
- Now depends on `billiard 3.3.0.17`_.
- Bundle ``celery[librabbitmq]`` now depends on :mod:`librabbitmq` 1.5.0.
.. _`billiard 3.3.0.17`:
https://github.com/celery/billiard/blob/master/CHANGES.txt
- **Tasks**: The :setting:`CELERY_DEFAULT_DELIVERY_MODE` setting was being
ignored (Issue #1953).
- **Worker**: New :option:`--heartbeat-interval` can be used to change the
time (in seconds) between sending event heartbeats.
Contributed by Matthew Duggan and Craig Northway.
- **App**: Fixed memory leaks occurring when creating lots of temporary
app instances (Issue #1949).
- **MongoDB**: SSL configuration with non-MongoDB transport breaks MongoDB
results backend (Issue #1973).
Fix contributed by Brian Bouterse.
- **Logging**: The color formatter accidentally modified ``record.msg``
(Issue #1939).
- **Results**: Fixed problem with task trails being stored multiple times,
causing ``result.collect()`` to hang (Issue #1936, Issue #1943).
- **Results**: ``ResultSet`` now implements a ``.backend`` attribute for
compatibility with ``AsyncResult``.
- **Results**: ``.forget()`` now also clears the local cache.
- **Results**: Fixed problem with multiple calls to ``result._set_cache``
(Issue #1940).
- **Results**: ``join_native`` populated result cache even if disabled.
- **Results**: The YAML result serializer should now be able to handle storing
exceptions.
- **Worker**: No longer sends task error emails for expected errors (in
``@task(throws=(..., )))``.
- **Canvas**: Fixed problem with exception deserialization when using
the JSON serializer (Issue #1987).
- **Eventlet**: Fixes crash when ``celery.contrib.batches`` attempted to
cancel a non-existing timer (Issue #1984).
- Can now import ``celery.version_info_t``, and ``celery.five`` (Issue #1968).
.. _version-3.1.10:
3.1.10
======
:release-date: 2014-03-22 09:40 P.M UTC
:release-by: Ask Solem
- **Requirements**:
- Now depends on :ref:`Kombu 3.0.14 <kombu:version-3.0.14>`.
- **Results**:
Reliability improvements to the SQLAlchemy database backend. Previously the
connection from the MainProcess was improperly shared with the workers.
(Issue #1786)
- **Redis:** Important note about events (Issue #1882).
There is a new transport option for Redis that enables monitors
to filter out unwanted events. Enabling this option in the workers
will increase performance considerably:
.. code-block:: python
BROKER_TRANSPORT_OPTIONS = {'fanout_patterns': True}
Enabling this option means that your workers will not be able to see
workers with the option disabled (or is running an older version of
Celery), so if you do enable it then make sure you do so on all
nodes.
See :ref:`redis-caveats`.
This will be the default in Celery 3.2.
- **Results**: The :class:`@AsyncResult` object now keeps a local cache
of the final state of the task.
This means that the global result cache can finally be disabled,
and you can do so by setting :setting:`CELERY_MAX_CACHED_RESULTS` to
:const:`-1`. The lifetime of the cache will then be bound to the
lifetime of the result object, which will be the default behavior
in Celery 3.2.
- **Events**: The "Substantial drift" warning message is now logged once
per node name only (Issue #1802).
- **Worker**: Ability to use one log file per child process when using the
prefork pool.
This can be enabled by using the new ``%i`` and ``%I`` format specifiers
for the log file name. See :ref:`worker-files-process-index`.
- **Redis**: New experimental chord join implementation.
This is an optimization for chords when using the Redis result backend,
where the join operation is now considerably faster and using less
resources than the previous strategy.
The new option can be set in the result backend URL:
CELERY_RESULT_BACKEND = 'redis://localhost?new_join=1'
This must be enabled manually as it's incompatible
with workers and clients not using it, so be sure to enable
the option in all clients and workers if you decide to use it.
- **Multi**: With ``-opt:index`` (e.g. :option:`-c:1`) the index now always refers
to the position of a node in the argument list.
This means that referring to a number will work when specifying a list
of node names and not just for a number range:
.. code-block:: bash
celery multi start A B C D -c:1 4 -c:2-4 8
In this example ``1`` refers to node A (as it's the first node in the
list).
- **Signals**: The sender argument to ``Signal.connect`` can now be a proxy
object, which means that it can be used with the task decorator
(Issue #1873).
- **Task**: A regression caused the ``queue`` argument to ``Task.retry`` to be
ignored (Issue #1892).
- **App**: Fixed error message for :meth:`~@Celery.config_from_envvar`.
Fix contributed by Dmitry Malinovsky.
- **Canvas**: Chords can now contain a group of other chords (Issue #1921).
- **Canvas**: Chords can now be combined when using the amqp result backend
(a chord where the callback is also a chord).
- **Canvas**: Calling ``result.get()`` for a chain task will now complete
even if one of the tasks in the chain is ``ignore_result=True``
(Issue #1905).
- **Canvas**: Worker now also logs chord errors.
- **Canvas**: A chord task raising an exception will now result in
any errbacks (``link_error``) to the chord callback to also be called.
- **Results**: Reliability improvements to the SQLAlchemy database backend
(Issue #1786).
Previously the connection from the ``MainProcess`` was improperly
inherited by child processes.
Fix contributed by Ionel Cristian Mărieș.
- **Task**: Task callbacks and errbacks are now called using the group
primitive.
- **Task**: ``Task.apply`` now properly sets ``request.headers``
(Issue #1874).
- **Worker**: Fixed ``UnicodeEncodeError`` occuring when worker is started
by `supervisord`.
Fix contributed by Codeb Fan.