Commit Graph

3091 Commits

Author SHA1 Message Date
Asif Saif Uddin (Auvi) 619754f130 updated version 4.6.8 2020-03-02 16:07:38 +06:00
Piyush Agarwal b22cb507a1
#1149 Enabled ssl certificate verification against ca certificates when amqps is used for pyamqp transport (#1151)
* enabled ssl certificate verification when amqps is used for pyamqp transport

* unit tests
2020-02-28 22:00:38 +06:00
Jonathan Ingram 5780f1e70b
Add predefined_queues option to SQS transport (#1156) 2020-02-26 09:09:38 +06:00
Shai Berger 16531285d5
Issue 701 (#1141)
* Make Redis-Mutex test fail as it should (#701)

See https://github.com/celery/kombu/issues/701

* Fix issue #701 - decode lock_id returned from Redis

Thanks @zaro
2020-02-02 21:10:56 +06:00
Dave Peticolas 7cb4a0afe5
Support standard values for ssl_cert_reqs query parameter. (#1139)
* Support standard values for ssl_cert_reqs query parameter.

* Pick lint.
2020-02-02 21:08:38 +06:00
york f2970e81f8
fix brop must in same slot error (#1144)
* fixed not Brpop in same slot

* fixed not Brpop in same slot
2020-02-02 21:05:06 +06:00
Konstantin Seleznev e1dcfaef4b
Adding retry_on_timeout parameter (#1150)
* added retry_on_timeout connparam

* added retry_on_timeout to tests

* updated Pyro4

* revert Pyro4 in requirements

* Trigger notification

* Trigger rebuild
2020-02-02 21:01:56 +06:00
Kevin Fox cbd327dc3b Add support for health_check_interval option in broker_transport_options. (#1145)
* Add support for health_check_interval option in broker_transport_options. #1114

* Added Keivn Fox to authors.

* Do not use default arg for pop() method.

* Add dedicated test case for configurable health_check

* Add test case for when health_check_interval is not supported by connection_class in redis.

* Fix Flake8

* Added more test cases for redis.

* Updated tests.
2020-01-11 11:20:31 +06:00
Asif Saif Uddin fe5adb539c
fix include file path 2019-12-17 23:40:42 +06:00
Asif Saif Uddin (Auvi) 6ef0a2d074 kombu 4.6.7 2019-12-07 20:44:25 +06:00
Asif Saif Uddin (Auvi) a70c54b78a kombu 4.6.7 changelog 2019-12-07 20:41:59 +06:00
Miro Hrončok 97e887605b Use importlib.metadata from the standard library on Python 3.8+ (#1086) 2019-12-03 07:57:07 +06:00
Brenna Heaps 70868ec199 Adding Tidelift marketing text (#1129)
@auvipy as requested, here is the README marketing text
2019-12-03 07:20:20 +06:00
Nicolas Mota 0c6444ac88 Add peek lock settings to be changed using transport options (#1119) 2019-12-02 04:15:35 +06:00
Ashish Bansal (mrphantom) ccc9e01f32 Fix redis health checks (#1122)
* Fix redis transport health checks functionality

* Add tests for accepts_argument util function

* Reduce default health check interval to 25s
2019-12-02 04:12:13 +06:00
Smite Chow de8d8cf8c1 reset ready before execute callback (#1126)
* reset ready before execute callback

* add test to cover hub._ready reset to empty
2019-12-02 04:11:15 +06:00
Mario Rodriguez Molins 81101877a0 Add missing parameter queue_args in kombu.connection.SimpleBuffer (#1128)
* Add missing parameter queue_args in kombu.connection.SimpleBuffer

`queue_args` parameter was introduced in `kombu.simple.SimpleQueue`
class and at the same time in `kombu.connection.SimpleQueue` method.
However, `kombu.connection.SimpleBuffer` was not updated in the
same way.

As `kombu.connection.SimpleBuffer` is using positional arguments to
create a `kombu.simple.SimpleBuffer` object, `exchange_opts` value in
that instance would be None and `queue_args` is going to bet set with
the expected `exchange_opts` value.

* Add tests for SimpleBuffer and SimpleQueue

- Add tests for SimpleBuffer/SimpleQueue methods in kombu.simple module
- Add tests for SimpleQueue and SimpleBuffer tasks in kombu.connection
2019-11-23 00:19:03 +06:00
Asif Saif Uddin b8f933d337
Rename Changelog to Changelog.rst 2019-11-20 00:13:41 +06:00
Manjusaka 10d64c38ca fix typo when use type hint (#1123) 2019-11-14 22:51:00 +06:00
Asif Saif Uddin (Auvi) 8276480e24 kombu 4.6.6 2019-11-11 00:15:06 +06:00
Asif Saif Uddin (Auvi) 36101bd357 changelog for kombu 4.6.6 2019-11-11 00:13:38 +06:00
Asif Saif Uddin 5006e49c53
Revert "Revert "Revert "Use SIMEMBERS instead of SMEMBERS to check for queue (redis broker) (#1041)" (#1058)" (#1068)" (#1117)
This reverts commit 052f7601d3.
2019-11-10 23:21:24 +06:00
Asif Saif Uddin 597d675ca1
Revert "Issue #1087 redis fix (#1089)" (#1106)
This reverts commit 2f6f5f6a5d.
2019-11-02 23:43:08 +06:00
Asif Saif Uddin 19528addd7
remove hard pin 2019-11-02 23:34:53 +06:00
Asif Saif Uddin a32d414425
py 3.8 on classifier 2019-10-29 09:25:23 +06:00
Aliaksei Urbanski ef54bf06f7 Fix 'NoneType' object has no attribute 'can_read' (#1107)
The root cause of the issue is that the connection
can be erased during an execution of self._receive_one(c).
So c.connection should be checked before every iteration,
not only before the first one.
2019-10-24 00:27:47 +06:00
Nicolas Mota 977fe3d4f6 Add wait timeout settings to receive queue message (#1110)
* Add wait timeout settings to receive queue message

* add tests

* add more tests and remove servicebus from coveragerc
2019-10-23 17:25:15 +03:00
Kris Ciccarello 2d92827746 Issue #1019 Fix redis transport socket timeout (#1113)
* Issue #1019 Fix redis transport socket timeout

Patch from @jschwartzentruber https://github.com/celery/kombu/issues/1019#issuecomment-535157400

* Fix test_register_with_event_loop redis test

* Fix linter

* Bump redis to 3.3.11
2019-10-23 10:23:26 +06:00
Omer Katz 62f4e2ce07 Added Python 3.8 support. 2019-10-22 23:28:29 +03:00
Asif Saif Uddin b51d1d678e
pinned to amqp 2.5.2 to avoid previous mistake 2019-10-01 16:53:41 +06:00
Asif Saif Uddin (Auvi) 741ef17b00 bump version to 4.6.5 2019-09-30 19:26:06 +06:00
Asif Saif Uddin (Auvi) 9272bd6bb1 changelog for 4.6.5 2019-09-30 19:22:33 +06:00
Asif Saif Uddin 2d72047861
pin py-amqo to 2.5.2 2019-09-30 19:09:01 +06:00
Shekhar Kamble c6b09a3ab5 fixes #1097 (#1099)
* sanitise url when include_password is false  (fixes #1085)

* fix flake8 error

* fixes #1097

* fix flake8 errors
2019-09-10 22:46:13 +06:00
Shekhar Kamble fcecc30aed sanitise url when include_password is false (fixes #1085) (#1095)
* sanitise url when include_password is false  (fixes #1085)

* fix flake8 error
2019-09-03 14:57:27 +03:00
Matt Davis 2f6f5f6a5d Issue #1087 redis fix (#1089)
* issue-1087 Revert _lookup api and correct redis implemetnation.  Update variable naming to be self documenting and more readable by non native speakers.  Major overhaul of redis test cases by adding more full featured fakeredis module.

* Add more test cases to boost coverage of kombu redis transport.

* Refactor the producer consumer test cases to be based on original mocks and be passing

* Fix lingering line length issue in test.
2019-08-31 23:54:01 +06:00
Matt Davis 8a974955a8 issue-1035 it might just work to include the prior version which was able to upload the various binary wheels to pypi. (#1083) 2019-08-18 10:40:41 +06:00
Asif Saif Uddin (Auvi) 5b44bf94fa changelog for 4.6.4 2019-08-14 22:37:41 +06:00
Asif Saif Uddin ab35032d05
bump py-amqp to 2.5.1 2019-08-14 22:11:46 +06:00
Eric Higdon 5f93e868cf Make sure that max_retries=0 is treated differently than None (#1080)
* Make sure that max_retries=0 is treated differently than None

When max_retries=0, it should not retry at all instead of retrying infinitely.

* retry_always should use max_retries=None instead of 0.

* Added test for zero retries

* Removed Offending spaces from blank line
2019-08-13 23:51:40 +06:00
Marcin Puhacz 0ad7d08c4c Fixing MongoDB backend to work properly with TTL (#1076)
* Fixing MongoDB backend to work properly with TTL
Bumping pymongo version to 3.8.0

* Updating authors

* Adding dependencies to travis config

* Fixing travis test cases

* Changing pymongo version to align with mongo result backend
2019-08-07 15:06:13 +03:00
David Szotten 193054d243 Switch from pkg_resources importlib-metadata (#1071)
See e.g. https://github.com/pypa/setuptools/issues/510#issuecomment-463667124

On a moderatly large project (~200 packages) at $work this saves ~150 ms on
`python -c 'from kombu import Exchange'`
2019-07-06 00:33:35 +06:00
Asif Saif Uddin 052f7601d3
Revert "Revert "Use SIMEMBERS instead of SMEMBERS to check for queue (redis broker) (#1041)" (#1058)" (#1068)
This reverts commit fcb8e05cc9.
2019-06-29 14:24:27 +06:00
Matt Davis ac6c7b9754 Issue 129 fix maybe declare (#1066)
* Factor out the binding of channel to entity into a method that can be shared and does not use assert.

* do not use assertion in production because it can be stripped in optimize and is best left for unit tests.

* dont reassign entity here because it breaks a bunch of tests.

* fix pydoc complaints

* Add TDD style test that fails in master and passes in my branch

* finish refactor of existing maybe_declare tests to use shared fixtures

* py2/py3 print difference means skip printing.

* fix pep8 line length
2019-06-29 11:34:35 +06:00
Eugene Beseda ffabaf31dd don't stop receiving tasks on 503 SQS error. (#1064)
* don't stop receiving tasks on 503 SQS error.

* fix linter errors
2019-06-25 00:18:15 +06:00
ngie-eign ec4313b034 Allow users to switch URLs while omitting the resource identifier (#1032)
Prior to this change, one needed to specify a URL using a URI
identifier, e.g., `pyamqp://foo.bar`. This change makes it so calling
`.switch(..)` again results in switching the host, not switching the
resource identifier.

This simplifies setting up connections with just hostnames specifying
the resource identifier once, separately.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
2019-06-24 11:39:18 +06:00
Bruno Alla ee4e7bd29b Fix broken build steps (#1062)
* Fix broken build steps

- Fix pydocstyle linting error
- Move apicheck to Python 3 to be able to install Sphinx 2.0+
  The rest will be moved when Python 2 is dropped

* Move pydocstyle linting steps to Python 3.6
2019-06-16 22:45:52 +06:00
Asif Saif Uddin 568dcd4189 Version 4.6.3 2019-06-15 03:29:22 +06:00
Asif Saif Uddin b91c81be43
Revert "Use fastuuid on CPython>=3.5 (#1056)" (#1061)
This reverts commit f9fbd8eb48.
2019-06-15 03:25:50 +06:00
Asif Saif Uddin 17d0ce18ef version 4.6.2 2019-06-15 00:35:43 +06:00