Commit Graph

2928 Commits

Author SHA1 Message Date
dust8 e209fa6f84 Fixed ValueError caused by mongodb rc version: invalid literal for in… (#816)
* Fixed ValueError caused by mongodb rc version: invalid literal for int () with base 10

* add test fix ValueError caused by mongodb rc version
2018-01-13 20:52:52 +06:00
Nicolas Delaby 9883a300f6 msgpack package has been renamed (#822)
https://github.com/msgpack/msgpack-python#messagepack-for-python
2018-01-09 18:07:45 +06:00
j2gg0s 066bcab06e Fix typo with Timer's docstring (#821) 2018-01-07 14:22:43 +06:00
Omer Katz 3a7cdb07c9
Make flake8 happy. 2017-12-17 12:15:42 +02:00
Omer Katz 6fb1f33de4
Disable pip progress bar. 2017-12-17 12:03:32 +02:00
Omer Katz 81e52b1a9a
Install sphinx_celery from git for now. (#818) 2017-12-13 10:27:14 +02:00
Felix Yan 9f2fd403ef Fix a typo in transport/mongodb.py (#808) 2017-10-19 13:10:27 +03:00
Jon Dufresne de87d2f1fa Include license file in the generated wheel packages (#807)
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:

https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
2017-10-16 09:10:27 +03:00
Aaron Morris d782a0f7cd Update json utils. (#804)
Some environments bundle versions of simplejson that do not have
JSONDecodeError. Handle ImportErrors in these cases.
2017-10-01 19:16:17 +03:00
Mads Jensen 572a4c02ba Removed some unnecessary variable assignments and fix variable-typo in docs 2017-09-22 22:04:13 +03:00
Colin Jeanne 488ed977e0 Require Redis 2.10.4 or greater (#788)
* Require Redis 2.10.4 or greater

The Redis transport uses the `can_read`'s `timeout` parameter. This parameter was added in 2.10.4.

* Bump the version to what Celery uses
2017-09-08 07:45:35 +03:00
Mads Jensen 65d203c71e Prefer dict literal syntax over dict() (#787)
* Prefer dict literal syntax over dict()

* An overlooked dict-constructor in transport/SQS.py
2017-09-08 07:43:59 +03:00
Omer Katz c292e9d400 Fixed the link to Pyro. Fixes #798. 2017-09-08 07:42:32 +03:00
Wojciech Matyśkiewicz a44763fbef fixed import path to SimpleQueue and SimpleBuffer 2017-09-06 20:21:16 +03:00
David Davis 2a161a4408 Make messages durable by default in qpid (#785)
We were seeing messages disappear in durable queues when restarting
qpid. This coincides with the rabbitmq code (e.g. https://git.io/v7jNV).
2017-08-20 14:32:10 +03:00
Mads Jensen 584451e093 Update links in documentation to either https or to new locations (#786) 2017-08-20 14:31:10 +03:00
isv1nd 220f3788b8 Invalid indent was fixed. (#778) 2017-08-05 21:36:28 +06:00
Anthony Lukach 0f4da8d450 Pass connection options from broker_options to default_channel (#769)
* Pass connection options from broker_options to default_channel (fixes #765)

* Fixup

* Fixup
2017-08-02 12:06:47 +03:00
Omer Katz 802e77b6c3
Bump version: 4.0.2 → 4.1.0 2017-07-20 19:21:00 +03:00
Geoffrey Bauduin 883aefe84c fix(doc): updating pydoc for redis sentinel (#766)
Signed-off-by: Geoffrey Bauduin <geoffrey.bauduin@corp.ovh.com>
2017-07-18 23:57:56 +06:00
Anthony Lukach 9038f4c4b3 Cleanup Changelog (resolve failing build) (#768)
* Cleanup Changelog

* Fixup
2017-07-18 23:42:36 +06:00
Anthony Lukach 55663e0b2c Bump version in README (#767) 2017-07-18 21:55:40 +06:00
Anthony Lukach fe16de1a1d v4.1.0 Release (#764)
* Prepare v4.1.0 release

* Fix typo

* Mark text as code
2017-07-18 11:58:58 +06:00
Anthony Lukach b1e6fa5bb1 Fix SQS requests and response handling (#754)
* Fix SQS requests and response handling

* Accurately portray empty message response
2017-07-17 18:22:40 +03:00
Gabriel Amram b2f2128928 Fix infinite loop in create_loop (#760)
* Fix infinite loop in create_loop

fixes https://github.com/celery/celery/issues/3712 

Before handling the todo items we "freeze" them by copying them aside and clearing the list.
This way if an item in the todo list appends a new callable to the list itself it will be taken care of in the next iteration of the parent loop instead of producing an infinite loop by adding it to the list we're running on.

* Changed the test to be aligned with the new implementation

* passing flake8

* Avoid copying results with each iteration of the async loop.

* Pop instead of slicing.

* fixed: todos -> todo, fixed test to use MagicMock so we can use the len() method

* MagicMock not supported in 2.7, implemented __len__ on Mock instead

* added entry to changelog
2017-07-10 21:21:49 +03:00
Omer Katz ad54980ddb Bump actual version in the docs. 2017-07-06 16:25:53 +03:00
bmbouter 09bd23bbd8 Adds `multiple` kwarg to Qpid `Channel.basic_ack` (#755)
Celery 4.0.2 passes the `multiple` keyword argument to `basic_ack`.
This did not used to occur with 3.1.20- so this change is only being
merged into the 4.0 branch. The desired functionality of this param is
documented here [0], but the Qpid transport uses UUIDs as the
delivery_tags so we don't have a record of the sequential messages
required to implement this. We use UUIDs as the deliver_tag to avoid
Issue #563.

With the functionality for the `multiple` parameter not implemented, an
AssertionError is raised if Celery attempts to meaningfully use the
`multiple` parameter with the Qpid transport. A developer or user who
encounters this AssertionError should file a bug with Kombu.

[0] http://amqp.readthedocs.io/en/latest/reference/amqp.connection.html#amqp.connection.Connection.Channel.basic_ack

closes #699
2017-06-20 09:10:11 -04:00
Mads Jensen 8fa14ce8d7 E302 violations fixed 2017-06-08 21:13:42 +03:00
Mikhail Elovskikh ba873ba4f2 Fix readpreference option parsing in MongoDB transport (#751)
* Fix readpreference option parsing in MongoDB transport

* Update changelog
2017-06-08 22:41:15 +06:00
Jon Dufresne 645bbd3078 Rename [wheel] section to [bdist_wheel] as the former is legacy (#749)
See:

54ddbcc9ce/wheel/bdist_wheel.py?fileviewer=file-view-default#bdist_wheel.py-119:125

http://pythonwheels.com/
2017-06-02 21:59:57 +06:00
Mads Jensen a600ab87d9 Prefer https over http and updated links to new locations. (#745) 2017-05-30 19:53:40 +06:00
Mads Jensen bc060c7f9c Fixed broken link to AMQP documentation (#743) 2017-05-30 16:23:37 +06:00
Amin Ghadersohi be79b3d4cd Re-Adding support for sqlalchemy as it is needed by Apache project Airflow (#687)
* Re-Adding support for sqlalchemy as it is needed by Apache project Airflow

* Re-Adding support for sqlalchemy as it is needed by Apache project Airflow
2017-05-17 14:17:47 +06:00
Anthony Lukach 25a9e76f3a Prevent SQS from defaulting to localhost hostname (#733)
* Prevent SQS from defaulting to localhost hostname

* Ensure cloned connection maintains NoneType hostname
2017-05-05 21:40:57 +06:00
George Psarakis da047e9c3b Parse password from Redis transport URL (#710) 2017-04-27 10:47:37 +03:00
Robert Kopaczewski 7152705d36 Fix librabbitmq queue handling (#726) 2017-04-27 10:46:04 +03:00
georgepsarakis d27abc837d Use pydocstyle version 1.1.1 for now 2017-04-26 21:45:17 +03:00
georgepsarakis 816e3dcf34 Use ensure_connection to allow broker failover 2017-04-26 21:45:17 +03:00
George Psarakis 259ac2e2bf Add missing function import 2017-04-26 21:44:34 +03:00
George Psarakis a875363730 Test cases for generate_oid 2017-04-26 21:44:34 +03:00
Bill Nottingham 4e28c0b839 Use uuid5() as an option in generate_oid if uuid3 fails.
uuid3() uses md5, which is disallowed on systems running in FIPS mode,
and will cause a traceback if called.
(http://csrc.nist.gov/groups/STM/cavp/validation.html)
2017-04-26 21:44:34 +03:00
c-nichols 075cd73206 Address shortcomings with timeout parameter described in issue #720 (#729) 2017-04-26 12:03:02 +06:00
Dima Kurguzov 221685618f Refactor chroot normalization 2017-04-21 19:29:21 +03:00
Dima Kurguzov 5f35ef996c Fix last chroot character trimming 2017-04-21 19:29:21 +03:00
eavictor 2e528de742 Fix Closed connection and with statement blows up (#721)
https://github.com/celery/kombu/issues/690
Add self.channel.connection check to prevent AttributeError.
2017-04-18 14:40:48 +06:00
Jon Dufresne b734d7a8f5 Fix invalid escape sequence (#717)
Fixes the following warning when running tests on Python 3.6:

DeprecationWarning: invalid escape sequence \.

See:

- https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
- https://bugs.python.org/issue27364
2017-04-17 10:27:15 +06:00
Jon Dufresne b39184c11a Remove deprecated use of StopIteration in generators (#718)
Removes warning during tests:

DeprecationWarning: generator '...' raised StopIteration

For additional information, see:

- https://docs.python.org/3/whatsnew/3.5.html#pep-479-change-stopiteration-handling-inside-generators
- https://www.python.org/dev/peps/pep-0479/
2017-04-17 10:26:21 +06:00
Jon Dufresne ba82a72c21 Add Python 3.6 to CI testing (#716)
Enabled pip cache for Travis CI
2017-04-17 10:24:52 +06:00
Jon Dufresne f4fda3858f Remove print from tests; looks like it was left in from debugging (#719) 2017-04-17 10:24:00 +06:00
georgepsarakis 90149e4c5c PEP8 fix 2017-04-16 11:28:24 +03:00