Celery

Latest version: v5.4.0

Safety actively analyzes 621521 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 38 of 48

2.0.0

Not secure
=====
:release-date: 2012-01-15 06:34 P.M GMT
:release-by: Ask Solem

.. _v200-important:

Important Notes
---------------

.. _v200-python-compatibility:

Python Compatibility
~~~~~~~~~~~~~~~~~~~~

* No longer supports Python 2.4.

Users of Python 2.4 can still use the 1.x series.

The 1.x series has entered bugfix-only maintenance mode, and will
stay that way as long as there is demand, and a willingness to
maintain it.


.. _v200-new-transports:

New Transports
~~~~~~~~~~~~~~

* ``django-kombu`` is now part of Kombu core.

The Django message transport uses the Django ORM to store messages.

It uses polling, with a default polling interval of 5 seconds.
The polling interval can be increased or decreased by configuring the
``KOMBU_POLLING_INTERVAL`` Django setting, which is the polling
interval in seconds as an int or a float. Note that shorter polling
intervals can cause extreme strain on the database: if responsiveness
is needed you shall consider switching to a non-polling transport.

To use it you must use transport alias ``"django"``,
or as a URL:

.. code-block:: text

django://

and then add ``kombu.transport.django`` to ``INSTALLED_APPS``, and
run ``manage.py syncdb`` to create the necessary database tables.

**Upgrading**

If you have previously used ``django-kombu``, then the entry
in ``INSTALLED_APPS`` must be changed from ``djkombu``
to ``kombu.transport.django``:

.. code-block:: python

INSTALLED_APPS = (
…,
'kombu.transport.django',
)

If you have previously used django-kombu, then there is no need
to recreate the tables, as the old tables will be fully compatible
with the new version.

* ``kombu-sqlalchemy`` is now part of Kombu core.

This change requires no code changes given that the
``sqlalchemy`` transport alias is used.

.. _v200-news:

News
----

* :class:`kombu.mixins.ConsumerMixin` is a mixin class that lets you
easily write consumer programs and threads.

See :ref:`examples` and :ref:`guide-consumers`.

* SQS Transport: Added support for SQS queue prefixes (Issue 84).

The queue prefix can be set using the transport option
``queue_name_prefix``:

.. code-block:: python

BrokerTransport('SQS://', transport_options={
'queue_name_prefix': 'myapp'})

Contributed by Nitzan Miron.

* ``Producer.publish`` now supports automatic retry.

Retry is enabled by the ``reply`` argument, and retry options
set by the ``retry_policy`` argument:

.. code-block:: python

exchange = Exchange('foo')
producer.publish(message, exchange=exchange, retry=True,
declare=[exchange], retry_policy={
'interval_start': 1.0})

See :meth:`~kombu.Connection.ensure`
for a list of supported retry policy options.

* ``Producer.publish`` now supports a ``declare`` keyword argument.

This is a list of entities (:class:`Exchange`, or :class:`Queue`)
that should be declared before the message is published.

.. _v200-fixes:

Fixes
-----

* Redis transport: Timeout was multiplied by 1000 seconds when using
``select`` for event I/O (Issue 86).

.. _version-1.5.1:

1.5.1

=====
:release-date: 2011-11-30 01:00 P.M GMT
:release-by: Ask Solem

* Fixes issue with ``kombu.compat`` introduced in 1.5.0 (Issue 83).

* Adds the ability to disable content_types in the serializer registry.

Any message with a content type that is disabled will be refused.
One example would be to disable the Pickle serializer:

>>> from kombu.serialization import registry
by name
>>> registry.disable('pickle')
or by mime-type.
>>> registry.disable('application/x-python-serialize')

.. _version-1.5.0:

1.5.0

=====
:release-date: 2011-11-27 06:00 P.M GMT
:release-by: Ask Solem

* kombu.pools: Fixed a bug resulting in resources not being properly released.

This was caused by the use of ``__hash__`` to distinguish them.

* Virtual transports: Dead-letter queue is now disabled by default.

The dead-letter queue was enabled by default to help application
authors, but now that Kombu is stable it should be removed.
There are after all many cases where messages should just be dropped
when there are no queues to buffer them, and keeping them without
supporting automatic cleanup is rather considered a resource leak
than a feature.

If wanted the dead-letter queue can still be enabled, by using
the ``deadletter_queue`` transport option:

.. code-block:: pycon

>>> x = Connection('redis://',
... transport_options={'deadletter_queue': 'ae.undeliver'})

In addition, an :class:`UndeliverableWarning` is now emitted when
the dead-letter queue is enabled and a message ends up there.

Contributed by Ionel Maries Cristian.

* MongoDB transport now supports Replicasets (Issue 81).

Contributed by Ivan Metzlar.

* The ``Connection.ensure`` methods now accepts a ``max_retries`` value
of 0.

A value of 0 now means *do not retry*, which is distinct from :const:`None`
which means *retry indefinitely*.

Contributed by Dan McGee.

* SQS Transport: Now has a lowercase ``sqs`` alias, so that it can be
used with broker URLs (Issue 82).

Fix contributed by Hong Minhee

* SQS Transport: Fixes KeyError on message acknowledgments (Issue 73).

The SQS transport now uses UUID's for delivery tags, rather than
a counter.

Fix contributed by Brian Bernstein.

* SQS Transport: Unicode related fixes (Issue 82).

Fix contributed by Hong Minhee.

* Redis version check could crash because of improper handling of types
(Issue 63).

* Fixed error with `Resource.force_close_all` when resources
were not yet properly initialized (Issue 78).

.. _version-1.4.3:

1.4.9

=====
:release-date: 2016-01-08 5:50 P.M PST
:release-by: Ask Solem

- Fixes compatibility with Linux/macOS instances where the ``ctypes`` module
does not exist.

Fix contributed by Jared Lewis.

.. _version-1.4.8:

1.4.8

=====
:release-date: 2015-12-07 12:25 A.M
:release-by: Ask Solem

- ``abstract_channel.wait`` now accepts a float `timeout` parameter expressed
in seconds

Contributed by Goir.

.. _version-1.4.7:

1.4.7

=====
:release-date: 2015-10-02 05:30 P.M PDT
:release-by: Ask Solem

- Fixed libSystem error on macOS 10.11 (El Capitan)

Fix contributed by Eric Wang.

- ``channel.basic_publish`` now raises :exc:`amqp.exceptions.NotConfirmed` on
``basic.nack``.

- AMQP timestamps received are now converted from GMT instead of local time
(Issue 67).

- Wheel package installation now supported by both Python 2 and Python3.

Fix contributed by Rémy Greinhofer.

.. _version-1.4.6:

Page 38 of 48

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.