forked from celery/kombu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changelog
3837 lines (2417 loc) · 102 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
================
.. _version-4.0.2:
4.0.2
=====
:release-date: 2016-12-15 03:31 P.M PST
:release-by: Ask Solem
- Now depends on :mod:`amqp` 2.1.4
This new version takes advantage of TCP Keepalive settings on Linux,
making it better at detecting closed connections, also in failover
conditions.
- Redis: Priority was reversed so, e.g. priority 0 became priority 9.
.. _version-4.0.1:
4.0.1
=====
:release-date: 2016-12-07 06:00 P.M PST
:release-by: Ask Solem
- Now depends on :mod:`amqp` 2.1.3
This new version takes advantage of the new ``TCP_USER_TIMEOUT`` socket option
on Linux.
- Producer: Fixed performance degradation when default exchange specified
(Issue #651).
- QPid: Switch to using getattr in qpid.Transport.__del__ (Issue #658)
Contributed by **Patrick Creech**.
- QPid: Now uses monotonic time for timeouts.
- MongoDB: Fixed compatibility with Python 3 (Issue #661).
- Consumer: ``__exit__`` now skips cancelling consumer if connection-related
error raised (Issue #670).
- MongoDB: Removes use of natural sort (Issue #638).
Contributed by **Anton Chaporgin**.
- Fixed wrong keyword argument ``channel`` error (Issue #652).
Contributed by **Toomore Chiang**.
- Safe argument to ``urllib.quote`` must be bytes on Python 2.x (Issue #645).
- Documentation improvments by:
- **Carlos Edo**
- **Cemre Mengu**
.. _version-4.0:
4.0
===
:release-date: 2016-10-28 16:45 P.M UTC
:release-by: Ask Solem
- Now depends on :mod:`amqp` 2.0.
The new py-amqp version have been refactored for better performance,
using modern Python socket conventions, and API consistency.
- No longer depends on :mod:`anyjson`.
Kombu will now only choose between :pypi:`simplejson` and the built-in
:mod:`json`.
Using the latest version of simplejson is recommended:
.. code-block:: console
$ pip install -U simplejson
- Removed transports that are no longer supported in this version:
- Django ORM transport
- SQLAlchemy ORM transport
- Beanstalk transport
- ZeroMQ transport
- amqplib transport (use pyamqp).
- API Changes
* Signature of :class:`kombu.Message` now takes body as first argment.
It used to be ``Message(channel, body=body, **kw)``, but now it's
``Message(body, channel=channel, **kw)``.
This is unlikey to affect you, as the Kombu API does not have
users instantiate messages manually.
- New SQS transport
Donated by NextDoor, with additional contributions from mdk.
.. note::
``kombu[sqs]`` now depends on :pypi:`pycurl`.
- New Consul transport.
Contributed by **Wido den Hollander**.
- New etcd transport.
Contributed by **Stephen Milner**.
- New Qpid transport.
It was introduced as an experimental transport in Kombu 3.0, but is now
mature enough to be fully supported.
Created and maintained by **Brian Bouterse**.
- Redis: Priority 0 is now lowest, 9 is highest.
(**backward incompatible**)
This to match how priorities in AMQP works.
Fix contributed by **Alex Koshelev**.
- Redis: Support for Sentinel
You can point the connection to a list of sentinel URLs like:
.. code-block:: text
sentinel://0.0.0.0:26379;sentinel://0.0.0.0:26380/...
where each sentinel is separated by a `;`. Multiple sentinels are handled
by :class:`kombu.Connection` constructor, and placed in the alternative
list of servers to connect to in case of connection failure.
Contributed by **Sergey Azovskov**, and **Lorenzo Mancini**
- RabbitMQ Queue Extensions
New arguments have been added to :class:`kombu.Queue` that lets
you directly and conveniently configure the RabbitMQ queue extensions.
- ``Queue(expires=20.0)``
Set queue expiry time in float seconds.
See :attr:`kombu.Queue.expires`.
- ``Queue(message_ttl=30.0)``
Set queue message time-to-live float seconds.
See :attr:`kombu.Queue.message_ttl`.
- ``Queue(max_length=1000)``
Set queue max length (number of messages) as int.
See :attr:`kombu.Queue.max_length`.
- ``Queue(max_length_bytes=1000)``
Set queue max length (message size total in bytes) as int.
See :attr:`kombu.Queue.max_length_bytes`.
- ``Queue(max_priority=10)``
Declare queue to be a priority queue that routes messages
based on the ``priority`` field of the message.
See :attr:`kombu.Queue.max_priority`.
- RabbitMQ: ``Message.ack`` now supports the ``multiple`` argument.
If multiple is set to True, then all messages received before
the message being acked will also be acknowledged.
- ``amqps://`` can now be specified to require SSL (Issue #610).
- ``Consumer.cancel_by_queue`` is now constant time.
- ``Connection.ensure*`` now raises :exc:`kombu.exceptions.OperationalError`.
Things that can be retried are now reraised as
:exc:`kombu.exceptions.OperationalError`.
- Redis: Fixed SSL support.
Contributed by **Robert Kolba**.
- New ``Queue.consumer_arguments`` can be used for the ability to
set consumer priority via ``x-priority``.
See https://www.rabbitmq.com/consumer-priority.html
Example:
.. code-block:: python
Queue(
'qname',
exchange=Exchange('exchange'),
routing_key='qname',
consumer_arguments={'x-priority': 3},
)
- Queue/Exchange: ``no_declare`` option added (also enabled for
internal amq. exchanges) (Issue #565).
- JSON serializer now calls ``obj.__json__`` for unsupported types.
This means you can now define a ``__json__`` method for custom
types that can be reduced down to a built-in json type.
Example:
.. code-block:: python
class Person:
first_name = None
last_name = None
address = None
def __json__(self):
return {
'first_name': self.first_name,
'last_name': self.last_name,
'address': self.address,
}
- JSON serializer now handles datetimes, Django promise, UUID and Decimal.
- Beanstalk: Priority 0 is now lowest, 9 is highest.
(**backward incompatible**)
This to match how priorities in AMQP works.
Fix contributed by **Alex Koshelev**.
- Redis: now supports SSL using the ``ssl`` argument to
:class:`~kombu.Connection`.
- Redis: Fanout exchanges are no longer visible between vhosts,
and fanout messages can be filtered by patterns.
(**backward incompatible**)
It was possible to enable this mode previously using the
``fanout_prefix``, and ``fanout_patterns``
transport options, but now these are enabled by default.
If you want to mix and match producers/consumers running different
versions you need to configure your kombu 3.x clients to also enable
these options:
.. code-block:: pycon
>>> Connection(transport_options={
'fanout_prefix': True,
'fanout_patterns': True,
})
- Pidbox: Mailbox new arguments: TTL and expiry.
Mailbox now supports new arguments for controlling
message TTLs and queue expiry, both for the mailbox
queue and for reply queues.
- ``queue_expires`` (float/int seconds).
- ``queue_ttl`` (float/int seconds).
- ``reply_queue_expires`` (float/int seconds).
- ``reply_queue_ttl`` (float/int seconds).
All take seconds in int/float.
Contributed by **Alan Justino**.
- Exchange.delivery_mode now defaults to :const:`None`, and the default
is instead set by ``Producer.publish``.
- :class:`~kombu.Consumer` now supports a new ``prefetch_count`` argument,
which if provided will force the consumer to set an initial prefetch count
just before starting.
- Virtual transports now stores ``priority`` as a property, not in
``delivery_info``, to be compatible with AMQP.
- ``reply_to`` argument to ``Producer.publish`` can now be
:class:`~kombu.Queue` instance.
- Connection: There's now a new method
``Connection.supports_exchange_type(type)`` that can be used to check if the
current transport supports a specific exchange type.
- SQS: Consumers can now read json messages not sent by Kombu.
Contributed by **Juan Carlos Ferrer**.
- SQS: Will now log the access key used when authentication fails.
Contributed by **Hank John**.
- Added new :class:`kombu.mixins.ConsumerProducerMixin` for consumers that
will also publish messages on a separate connection.
- Messages: Now have a more descriptive ``repr``.
Contributed by **Joshua Harlow**.
- Async: HTTP client based on curl.
- Async: Now uses `poll` instead of `select` where available.
- MongoDB: Now supports priorities
Contributed by **Alex Koshelev**.
- Virtual transports now supports multiple queue bindings.
Contributed by **Federico Ficarelli**.
- Virtual transports now supports the anon exchange.
If when publishing a message, the exchange argument is set to '' (empty
string), the routing_key will be regarded as the destination queue.
This will bypass the routing table compeltely, and just deliver the
message to the queue name specified in the routing key.
- Zookeeper: Transport now uses the built-in suport in kazoo to handle
failover when using a list of server names.
Contributed by **Joshua Harlow**.
- ConsumerMixin.run now passes keyword arguments to .consume.
Deprecations and removals
-------------------------
- The deprecated method ``Consumer.add_queue_from_dict`` has been removed.
Use instead:
.. code-block:: python
consumer.add_queue(Queue.from_dict(queue_name, **options))
- The deprecated function ``kombu.serialization.encode`` has been removed.
Use :func:`kombu.serialization.dumps` instead.
- The deprecated function ``kombu.serialization.decode`` has been removed.
Use :func:`kombu.serialization.loads` instead.
- Removed module ``kombu.syn``
``detect_environment`` has been moved to kombu.utils.compat
.. _version-3.0.37:
3.0.37
======
:release-date: 2016-10-06 05:00 P.M PDT
:release-by: Ask Solem
- Connection: Return value of ``.info()`` was no longer JSON serializable,
leading to "itertools.cycle object not JSON serializable"
errors (Issue #635).
.. _version-3.0.36:
3.0.36
======
:release-date: 2016-09-30 03:06 P.M PDT
:release-by: Ask Solem
- Connection: Fixed bug when cloning connection with alternate urls.
Fix contributed by Emmanuel Cazenave.
- Redis: Fixed problem with unix socket connections.
https://github.com/celery/celery/issues/2903
Fix contributed by Raphael Michel.
- Redis: Fixed compatibility with older redis-py versions (Issue #576).
- Broadcast now retains queue name when being copied/pickled (Issue #578).
.. _version-3.0.35:
3.0.35
======
:release-date: 2016-03-22 11:22 P.M PST
:release-by: Ask Solem
- msgpack: msgpack support now requires msgpack-python > 0.4.7.
- Redis: TimeoutError was no longer handled as a recoverable error.
- Redis: Adds the ability to set more Redis connection options
using ``Connection(transport_options={...})``.
- ``socket_connect_timeout``
- ``socket_keepalive`` (requires :mod:`redis-py` > 2.10)
- ``socket_keepalive_options`` (requires :mod:`redis-py` > 2.10)
- msgpack: Fixes support for binary/unicode data
.. _version-3.0.34:
3.0.34
======
:release-date: 2016-03-03 05:30 P.M PST
:release-by: Ask Solem
- Qpid: Adds async error handling.
Contributed by Brian Bouterse.
- Qpid: Delivery tag is now a UUID4 (Issue #563).
Fix contributed by Brian Bouterse.
- Redis: Connection.as_uri() returned malformed URLs when the
``redis+socket`` scheme was ised (Issue celery/celery#2995).
- msgpack: Use binary encoding instead of utf-8 (Issue #570).
.. _version-3.0.33:
3.0.33
======
:release-date: 2016-01-08 06:36 P.M PST
:release-by: Ask Solem
- Now depends on :mod:`amqp` 1.4.9.
- Redis: Fixed problem with auxilliary connections causing the main
consumer connection to be closed (Issue #550).
- Qpid: No longer uses threads to operate, to ensure compatibility with
all environments (Issue #531).
.. _version-3.0.32:
3.0.32
======
:release-date: 2015-12-16 02:29 P.M PST
:release-by: Ask Solem
- Redis: Fixed bug introduced in 3.0.31 where the redis transport always
connects to localhost, regardless of host setting.
.. _version-3.0.31:
3.0.31
======
:release-date: 2015-12-16 12:00 P.M PST
:release-by: Ask Solem
- Redis: Fixed bug introduced in 3.0.30 where socket was prematurely
disconnected.
- Hub: Removed debug logging message: "Deregistered fd..." (Issue #549).
.. _version-3.0.30:
3.0.30
======
:release-date: 2015-12-07 12:28 A.M PST
:release-by: Ask Solem
- Fixes compatiblity with uuid in Python 2.7.11 and 3.5.1.
Fix contributed by Kai Groner.
- Redis transport: Attempt at fixing problem with hanging consumer
after disconnected from server.
- Event loop:
Attempt at fixing issue with 100% CPU when using the Redis transport,
- Database transport: Fixed oracle compatiblity.
An "ORA-00907: missing right parenthesis" error could manifest when using
an Oracle database with the database transport.
Fix contributed by Deepak N.
- Documentation fixes
Contributed by Tommaso Barbugli.
.. _version-3.0.29:
3.0.29
======
:release-date: 2015-10-26 11:10 A.M PDT
:release-by: Ask Solem
- Fixed serialization issue for ``bindings.as_dict()`` (Issue #453).
Fix contributed by Sergey Tikhonov.
- Json serializer wrongly treated bytes as ``ascii``, not ``utf-8``
(Issue #532).
- MongoDB: Now supports pymongo 3.x.
Contributed by Len Buckens.
- SQS: Tests passing on Python 3.
Fix contributed by Felix Yan
.. _version-3.0.28:
3.0.28
======
:release-date: 2015-10-12 12:00 PM PDT
:release-by: Ask Solem
.. admonition:: Django transport migrations.
If you're using Django 1.8 and have already created the
kombu_transport_django tables, you have to run a fake initial migration:
.. code-block:: console
$ python manage.py migrate kombu_transport_django --fake-initial
- No longer compatible with South by default.
To keep using kombu.transport.django with South migrations
you now need to configure a new location for the kombu migrations:
.. code-block:: python
SOUTH_MIGRATION_MODULES = {
'kombu_transport_django':
'kombu.transport.django.south_migrations',
}
- Keep old South migrations in ``kombu.transport.django.south_migrations``.
- Now works with Redis < 2.10 again.
.. _version-3.0.27:
3.0.27
======
:release-date: 2015-10-09 3:10 PM PDT
:release-by: Ask Solem
- Now depends on :mod:`amqp` 1.4.7.
- Fixed libSystem import error on some macOS 10.11 (El Capitan) installations.
Fix contributed by Eric Wang.
- Now compatible with Django 1.9.
- Django: Adds migrations for the database transport.
- Redis: Now depends on py-redis 2.10.0 or later (Issue #468).
- QPid: Can now connect as localhost (Issue #519).
Fix contributed by Brian Bouterse.
- QPid: Adds support for ``login_method`` (Issue #502, Issue #499).
Contributed by Brian Bouterse.
- QPid: Now reads SASL mechanism from broker string (Issue #498).
Fix contributed by Brian Bouterse.
- QPid: Monitor thread now properly terminated on session close (Issue #485).
Fix contributed by Brian Bouterse.
- QPid: Fixed file descriptor leak (Issue #476).
Fix contributed by Jeff Ortel
- Docs: Fixed wrong order for entrypoint arguments (Issue #473).
- ConsumerMixin: Connection error logs now include traceback (Issue #480).
- BaseTransport now raises RecoverableConnectionError when disconnected
(Issue #507).
- Consumer: Adds ``tag_prefix`` option to modify how consumer tags are
generated (Issue #509).
.. _version-3.0.26:
3.0.26
======
:release-date: 2015-04-22 06:00 P.M UTC
:release-by: Ask Solem
- Fixed compatibility with py-redis versions before 2.10.3 (Issue #470).
.. _version-3.0.25:
3.0.25
======
:release-date: 2015-04-21 02:00 P.M UTC
:release-by: Ask Solem
- pyamqp/librabbitmq now uses 5671 as default port when SSL is enabled
(Issue #459).
- Redis: Now supports passwords in ``redis+socket://:pass@host:port`` URLs
(Issue #460).
- ``Producer.publish`` now defines the ``expiration`` property in support
of the `RabbitMQ per-message TTL extension`_.
Contributed by Anastasis Andronidis.
- Connection transport attribute now set correctly for all transports.
Contributed by Alex Koshelev.
- qpid: Fixed bug where the connectionw as not being closed properly.
Contributed by Brian Bouterse.
- :class:`~kombu.entity.bindings` is now JSON serializable (Issue #453).
Contributed by Sergey Tikhonov.
- Fixed typo in error when yaml is not installed (said ``msgpack``).
Contributed by Joshua Harlow.
- Redis: Now properly handles :exc:`redis.exceptions.TimeoutError`
raised by :mod:`redis`.
Contributed by markow.
- qpid: Adds additional string to check for when connecting to qpid.
When we connect to qpid, we need to ensure that we skip to the next SASL
mechanism if the current mechanism fails. Otherwise, we will keep retrying the
connection with a non-working mech.
Contributed by Chris Duryee.
- qpid: Handle ``NotFound`` exceptions.
Contributed by Brian Bouterse.
- :class:`Queue.__repr__` now makes sure return value is not unicode
(Issue #440).
- qpid: ``Queue.purge`` incorrectly raised :exc:`AttributeErrror` if the
does not exist (Issue #439).
Contributed by Brian Bouterse.
- Linux: Now ignores permission errors on epoll unregister.
.. _`RabbitMQ per-message TTL extension`: https://www.rabbitmq.com/ttl.html
.. _version-3.0.24:
3.0.24
======
:release-date: 2014-11-17 11:00 P.M UTC
:release-by: Ask Solem
- The `Qpid <http://qpid.apache.org/>`_ broker is supported for Python 2.x
environments. The Qpid transport includes full SSL support within Kombu. See
the :mod:`kombu.transport.qpid` docs for more info.
Contributed by Brian Bouterse and Chris Duryee through support from Red Hat.
- Dependencies: extra[librabbitmq] now requires librabbitmq 1.6.0
- Docstrings for :class:`~kombu.utils.limit.TokenBucket` did not match
implementation.
Fix contributed by Jesse Dhillon.
- :func:`~kombu.common.oid_from` accidentally called ``uuid.getnode()`` but
did not use the return value.
Fix contributed by Alexander Todorov.
- Redis: Now ignores errors when cosing the underlying connection.
- Redis: Restoring messages will now use a single connection.
- ``kombu.five.monotonic``: Can now be imported even if ctypes is not
available for some reason (e.g. App Engine)
- Documentation: Improved example to use the ``declare`` argument to
``Producer`` (Issue #423).
- Django: Fixed ``app_label`` for older Django versions (``< 1.7``).
(Issue #414).
.. _version-3.0.23:
3.0.23
======
:release-date: 2014-09-14 10:45 P.M UTC
:release-by: Ask Solem
- Django: Fixed bug in the Django 1.7 compatibility improvements related
to autocommit handling.
Contributed by Radek Czajka.
- Django: The Django transport models would not be created on syncdb
after app label rename (Issue #406).
.. _version-3.0.22:
3.0.22
======
:release-date: 2014-09-04 03:00 P.M UTC
:release-by: Ask Solem
- kombu.async: Min. delay between waiting for timer was always increased to
one second.
- Fixed bug in itermessages where message is received after the with
statement exits the block.
Fixed by Rumyana Neykova
- Connection.autoretry: Now works with functions missing wrapped attributes
(``__module__``, ``__name__``, ``__doc__``). Fixes #392.
Contributed by johtso.
- Django: Now sets custom app label for ``kombu.transport.django`` to work
with recent changes in Django 1.7.
- SimpleQueue removed messages from the wrong end of buffer (Issue #380).
- Tests: Now using ``unittest.mock`` if available (Issue #381).
.. _version-3.0.21:
3.0.21
======
:release-date: 2014-07-07 02:00 P.M UTC
:release-by: Ask Solem
- Fixed remaining bug in ``maybe_declare`` for ``auto_delete`` exchanges.
Fix contributed by Roger Hu.
- MongoDB: Creating a channel now properly evaluates a connection (Issue #363).
Fix contributed by Len Buckens.
.. _version-3.0.20:
3.0.20
======
:release-date: 2014-06-24 02:30 P.M UTC
:release-by: Ask Solem
- Reverts change in 3.0.17 where ``maybe_declare`` caches the declaration
of auto_delete queues and exchanges.
Fix contributed by Roger Hu.
- Redis: Fixed race condition when using gevent and the channel is closed.
Fix contributed by Andrew Rodionoff.
.. _version-3.0.19:
3.0.19
======
:release-date: 2014-06-09 03:10 P.M UTC
:release-by: Ask Solem
- The wheel distribution did not support Python 2.6 by failing to list
the extra dependencies required.
- Durable and auto_delete queues/exchanges can be be cached using
``maybe_declare``.
.. _version-3.0.18:
3.0.18
======
:release-date: 2014-06-02 06:00 P.M UTC
:release-by: Ask Solem
- A typo introduced in 3.0.17 caused kombu.async.hub to crash (Issue #360).
.. _version-3.0.17:
3.0.17
======
:release-date: 2014-06-02 05:00 P.M UTC
:release-by: Ask Solem
- ``kombu[librabbitmq]`` now depends on librabbitmq 1.5.2.
- Async: Event loop now selectively removes file descriptors for the mode
it failed in, and keeps others (e.g read vs write).
Fix contributed by Roger Hu.
- CouchDB: Now works without userid set.
Fix contributed by Latitia M. Haskins.
- SQLAlchemy: Now supports recovery from connection errors.
Contributed by Felix Schwarz.
- Redis: Restore at shutdown now works when ack emulation is disabled.
- :func:`kombu.common.eventloop` accidentally swallowed socket errors.
- Adds :func:`kombu.utils.url.sanitize_url`
.. _version-3.0.16:
3.0.16
======
:release-date: 2014-05-06 01:00 P.M UTC
:release-by: Ask Solem
- ``kombu[librabbitmq]`` now depends on librabbitmq 1.5.1.
- Redis: Fixes ``TypeError`` problem in ``unregister`` (Issue #342).
Fix contributed by Tobias Schottdorf.
- Tests: Some unit tests accidentally required the `redis-py` library.
Fix contributed by Randy Barlow.
- librabbitmq: Would crash when using an older version of :mod:`librabbitmq`,
now emits warning instead.
.. _version-3.0.15:
3.0.15
======
:release-date: 2014-04-15 09:00 P.M UTC
:release-by: Ask Solem
- Now depends on :mod:`amqp` 1.4.5.
- RabbitMQ 3.3 changes QoS semantics (Issue #339).
See the RabbitMQ release notes here:
http://www.rabbitmq.com/blog/2014/04/02/breaking-things-with-rabbitmq-3-3/
A new connection property has been added that can be used to detect
whether the remote server is using this new QoS behavior:
.. code-block:: pycon
>>> Connection('amqp://').qos_behavior_matches_spec
False
so if your application depends on the old semantics you can
use this to set the ``apply_global`` flag appropriately:
.. code-block:: python
def update_prefetch_count(channel, new_value):
channel.basic_qos(
0, new_value,
not channel.connection.client.qos_behavior_matches_spec,
)
- Users of :mod:`librabbitmq` is encouraged to upgrade to librabbitmq 1.5.0.
The ``kombu[librabbitmq]`` extra has been updated to depend on this
version.
- Pools: Now takes transport options into account when comparing connections
(Issue #333).
- MongoDB: Fixes Python 3 compatibility.
- Async: select: Ignore socket errors when attempting to unregister handles
from the loop.
- Pidbox: Can now be configured to use a serializer other than json,
but specifying a serializer argument to :class:`~kombu.pidbox.Mailbox`.
Contributed by Dmitry Malinovsky.
- Message decompression now works with Python 3.
Fix contributed by Adam Gaca.
.. _version-3.0.14:
3.0.14
======
:release-date: 2014-03-19 07:00 P.M UTC
:release-by: Ask Solem
- **MongoDB**: Now endures a connection failover (Issue #123).
Fix contributed by Alex Koshelev.
- **MongoDB**: Fixed ``KeyError`` when a replica set member is removed.
Also fixes celery#971 and celery/#898.
Fix contributed by Alex Koshelev.
- **MongoDB**: Fixed MongoDB broadcast cursor re-initialization bug.
Fix contributed by Alex Koshelev.
- **Async**: Fixed bug in lax semaphore implementation where in
some usage patterns the limit was not honored correctly.
Fix contributed by Ionel Cristian Mărieș.
- **Redis**: Fixed problem with fanout when using Python 3 (Issue #324).
- **Redis**: Fixed ``AttributeError`` from attempting to close a non-existing
connection (Issue #320).
.. _version-3.0.13:
3.0.13
======
:release-date: 2014-03-03 04:00 P.M UTC
:release-by: Ask Solem
- Redis: Fixed serious race condition that could lead to data loss.
The delivery tags were accidentally set to be an incremental number
local to the channel, but the delivery tags need to be globally
unique so that a message can not overwrite an older message
in the backup store.
This change is not backwards incompatible and you are encouraged
to update all your system using a previous version as soon as possible.
- Now depends on :mod:`amqp` 1.4.4.
- Pidbox: Now makes sure message encoding errors are handled by default,
so that a custom error handler does not need to be specified.
- Redis: The fanout exchange can now use AMQP patterns to route and filter
messages.
This change is backwards incompatible and must be enabled with
the ``fanout_patterns`` transport option:
.. code-block:: pycon
>>> conn = kombu.Connection('redis://', transport_options={
... 'fanout_patterns': True,
... })
When enabled the exchange will work like an amqp topic exchange
if the binding key is a pattern.
This is planned to be default behavior in the future.
- Redis: Fixed ``cycle`` no such attribute error.
.. _version-3.0.12:
3.0.12
======
:release-date: 2014-02-09 03:50 P.M UTC
:release-by: Ask Solem
- Now depends on :mod:`amqp` 1.4.3.
- Fixes Python 3.4 logging incompatibility (Issue #311).