Commit Graph

3387 Commits

Author SHA1 Message Date
Gabriel Niebler 4979c3a3e1
Small doc fixes (#1319)
* Clean up grammar in paragraph about callbacks

* Structure event draining examples into subsections

* Make code example make more sense

… and bring it more in line with text above.

* Fix code example

* Fix another code example

typo in method name
2021-03-18 23:35:47 +06:00
Illia Volochii e3471a2fc2
Drop obsolete code importing pickle (#1315)
https://docs.python.org/3.9/whatsnew/3.0.html#library-changes

> A common pattern in Python 2.x is to have one version of a module implemented in pure Python, with an optional accelerated version implemented as a C extension; for example, pickle and cPickle. This places the burden of importing the accelerated version and falling back on the pure Python version on each user of these modules. In Python 3.0, the accelerated versions are considered implementation details of the pure Python versions. Users should always import the standard version, which attempts to import the accelerated version and falls back to the pure Python version. The pickle / cPickle pair received this treatment.
2021-03-16 12:13:37 +02:00
Gabriel Niebler e0fb1f1123
Fix tiny mistake in introduction (#1312)
* Fix tiny mistake in introduction

… at least I _think_ it's a mistake.

* Remove unused import in code example

* Fix minor grammatical errors
2021-03-16 13:11:47 +06:00
Omer Katz 1e20625d7b Drop support for the lzma backport. 2021-03-16 10:02:55 +06:00
Krogsager c7068ef240
Update connection.py (#1311)
Based on my headaches with silent revert to `localhost` I submit this PR.
The developer should be notified if their host settings are not found.
Details on the issue are here: https://github.com/celery/celery/issues/6661
2021-03-15 16:31:13 +02:00
Illia Volochii 7da36e4627
Update default pickle protocol version to 4 (#1314)
Protocol version 4 was added in Python 3.4 and is supported by all Python versions that kombu supports.

https://docs.python.org/3.9/library/pickle.html#data-stream-format
2021-03-15 16:23:28 +02:00
Matus Valo 39ccacf0dc
Add Github Actions CI (#1309)
* Implement CI is github actions

* Skip failing pypy3 unittests

* Added integration tests
2021-03-07 18:53:25 +06:00
Max Nikitenko 2a704e3585
fix: non kombu json message decoding in SQS transport (#1306)
* fix: non kombu json message decoding in SQS transport

* fix: non kombu json message decoding in SQS transport - add tests

Co-authored-by: Max Nikitenko <max.nikitenko@namecheap.com>
2021-03-07 14:35:55 +06:00
Matus Valo fccbb0d5d6 Fixed SQS unittests 2021-03-07 12:25:15 +06:00
Matus Valo d3ded0069c
Revert "Port of redis code improvements from prior revision (#1132)" (#1307)
This reverts commit 753f4ec174.
2021-03-06 20:36:59 +01:00
Matt Davis 753f4ec174
Port of redis code improvements from prior revision (#1132)
* Port of redis code improvements from prior revision

Add fakeredis requirement

* refine variable naming based on PR feedback.

* Remove python2 code style and remove unittest.Testcase from test_redis.py

* Code refactor of redis.py and test_redis.py

Co-authored-by: Matus Valo <matusvalo@gmail.com>
2021-03-03 22:40:37 +01:00
gal cohen bf35d206e7
alter doc (#1304)
Co-authored-by: galcohen <gal.cohen@autodesk.com>
2021-03-02 15:35:37 +02:00
gal cohen 2e9856023c
SQS back-off policy (#1301)
* sqs retry policy

* add test

* method definition

* add validation

* rename policy

* add kombu doc

* improve docstring

* add test and doc

* test fix

* test fixes

* add doc

* Update docs/reference/kombu.transport.SQS.rst

Co-authored-by: Omer Katz <omer.drow@gmail.com>

* Update docs/reference/kombu.transport.SQS.rst

Co-authored-by: Omer Katz <omer.drow@gmail.com>

* Update kombu/transport/SQS.py

Co-authored-by: Omer Katz <omer.drow@gmail.com>

* Update kombu/transport/SQS.py

Co-authored-by: Omer Katz <omer.drow@gmail.com>

* Update kombu/transport/SQS.py

Co-authored-by: Omer Katz <omer.drow@gmail.com>

* review improvements

* improvements

* add improvements

* rename

Co-authored-by: galcohen <gal.cohen@autodesk.com>
Co-authored-by: Omer Katz <omer.drow@gmail.com>
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
2021-03-02 12:22:47 +02:00
Choi Geonu 3e5263c481
Disable namedtuple to object feature in simplejson (#1297) 2021-03-01 14:42:42 +01:00
raittes ae9ce769c3 t/unit/asynchronous/http/test_curl: fix test_set_timeout 2021-02-12 10:35:01 +06:00
raittes 2646173055 kombu/asynchronous/http/curl: implement _set_timeout 2021-02-12 10:35:01 +06:00
Asif Saif Uddin c19693902c attempt to update to tox docker 2.0 2021-02-01 23:21:59 +06:00
Asif Saif Uddin fd2e07d794
min py-amqp to 5.0.5 (#1292) 2021-02-01 14:05:02 +02:00
Redowan Delowar 1294530530 Python 3 style print statement 2021-01-15 09:02:49 +06:00
Terry Cain 90c6ac706e Fix issues with parsing URL with an extra / in it. 2021-01-06 21:57:40 +06:00
Philipp A 43190b293c
Allow specifying session token (#1283)
* Allow specifying session token

* add docs

* add comment
2021-01-05 22:42:13 +06:00
Terry Cain 3d41ab1389
Support for Azure Service Bus 7.0.0 (#1284)
* Started servicebus refactor

* Cleaned up, handle service bus SAS token parsing
2021-01-04 14:14:39 +01:00
Tim Gates a37a05616f docs: fix simple typo, propery -> property
There is a small typo in kombu/asynchronous/http/base.py.

Should read `property` rather than `propery`.
2020-12-28 10:01:13 +06:00
Anudeep Samaiya 716ad7e1f7 Update connections.rst with Redis sentinel example
Add redis sentinel example for in connections.rst for kombu.
2020-12-23 13:37:59 +06:00
AbdealiJK 6cb9d6639e redis: Support Sentinel with SSL
Use the SentinelManagedSSLConnection when SSL is enabled for the
transport. The redis-py project doesn't have a connection class for
SSL+Sentinel yet. So, create a class in redis.py to add that
functionality.
2020-12-03 12:50:15 +06:00
Matus Valo d4dd8d7206
Remove python2 compatibility code (#1277) 2020-11-25 12:19:10 +02:00
Kevin Fox 8d29e6f708 Added 4.6.8 changelog
- Added changelog that was missing for `4.6.8`. See commits [here](https://github.com/celery/kombu/compare/4.6.7...4.6.8)
2020-11-21 10:01:28 +06:00
RezaSi b8594f8a33
Add timeout to producer publish (#1269)
* Add timeout and confirm_timeout to producer publish

* Remove confirm_timeout and add test for timeout

* Fix test

Co-authored-by: Reza Shiri <rezashiri@cafebazaar.ir>
2020-11-17 14:06:43 +06:00
Matus Valo 1f2392beae Pin urllib3<1.26 to fix failing unittests. 2020-11-16 22:36:02 +06:00
Omer Katz 26864d60a3
Require py-amqp 5.0.2.
See #1266.
2020-11-11 13:01:24 +02:00
Matus Valo d787492076 Remove kombu.transport.sqlalchemy.models from API reference Table of Content 2020-11-03 23:39:20 +01:00
Matus Valo b9f6629828 Include sqlalchemy to requirements/docs.txt
Building sqlalchemy transport documentation fails due missing sqlalchemy
package.
2020-11-03 23:26:09 +01:00
Matus Valo 7b989d64b7
Reformat and improve kombu transport reference docs (#1264) 2020-11-03 22:41:22 +01:00
Asif Saif Uddin ef75ac4299
move to travis-ci.com 2020-10-31 11:40:55 +06:00
Chris Burr 3821a148b7 Add vine to dependencies 2020-10-31 11:29:29 +06:00
Matus Valo b01a448a4c Added kombu.pools.get_limit() to pools userguide 2020-10-24 22:50:31 +02:00
Matus Valo a4c7809061 Fix parameter of SimpleBuffer in example 2020-10-24 22:50:31 +02:00
Vinay Karanam c70c115c2b Revert "on worker restart - restore visible regardless to time (#905)"
This reverts commit a307726faa.
2020-10-15 15:29:47 +06:00
vinay karanam 60dc345636
Added self to AUTHORS (#1260) 2020-10-14 13:42:49 +03:00
Chris Lambacher bcf0ffe772 Fix pidbox not using default channels
Not all cases are properly using the default channel even when detecting
for it.

Fixes: #1201
2020-10-13 10:38:43 +06:00
Chris Lambacher b79146d8a1 Test default channel gets used 2020-10-13 10:38:43 +06:00
Matus Valo 3704a1c61e Fix default value of pool limit to 10 in docs.
In commit 40722ea59c the pool limit was
changed from 200 to 10.
2020-10-12 00:06:33 +02:00
Matus Valo e75c4f16ea Fix Downloads badge in README.rst 2020-10-08 23:01:30 +02:00
Matus Valo 1bdc6231ac Fix failing readthedocs build due missing curl system packages 2020-10-08 22:41:15 +02:00
Matus Valo 5620904c75 Split reference guide into sections 2020-10-08 20:10:00 +02:00
Matus Valo 7690f06ed3 Include SQS reference guide and minor refactor of the content style 2020-10-08 14:51:32 +02:00
Matus Valo 7b2578b19b rename section kombu -> kombu.serialization in reference docs 2020-10-02 22:57:12 +02:00
Matus Valo 01719be0b8 Removed kombu.five from reference toctree 2020-09-27 21:33:51 +02:00
Matus Valo 684b350327 Fixed examples in failover documentation 2020-09-24 16:18:23 +02:00
Matus Valo faa1d86b52
Redis Transport: Small improvements of `SentinelChannel` (#1253)
* Redis Sentinel connection string now supports default sentinel port

* Raise ValueError when SentinelChannel is missing master_name transport option
2020-09-24 12:41:21 +03:00