Skip to content

Commit

Permalink
Merge branch 'main' into feture_urllib3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus authored Oct 13, 2024
2 parents ca9211d + 3f5d199 commit 6d62a97
Show file tree
Hide file tree
Showing 10 changed files with 1,649 additions and 2 deletions.
24 changes: 24 additions & 0 deletions docs/reference/kombu.transport.gcpubsub.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
==============================================================
Google Cloud Pub/Sub Transport - ``kombu.transport.gcpubsub``
==============================================================

.. currentmodule:: kombu.transport.gcpubsub

.. automodule:: kombu.transport.gcpubsub

.. contents::
:local:

Transport
---------

.. autoclass:: Transport
:members:
:undoc-members:

Channel
-------

.. autoclass:: Channel
:members:
:undoc-members:
1 change: 1 addition & 0 deletions kombu/messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def publish(self, body, routing_key=None, delivery_mode=None,
declare.append(self.exchange)

if retry:
self.connection.transport_options.update(retry_policy)
_publish = self.connection.ensure(self, _publish, **retry_policy)
return _publish(
body, priority, content_type, content_encoding,
Expand Down
3 changes: 2 additions & 1 deletion kombu/transport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def supports_librabbitmq() -> bool | None:
'etcd': 'kombu.transport.etcd:Transport',
'azurestoragequeues': 'kombu.transport.azurestoragequeues:Transport',
'azureservicebus': 'kombu.transport.azureservicebus:Transport',
'pyro': 'kombu.transport.pyro:Transport'
'pyro': 'kombu.transport.pyro:Transport',
'gcpubsub': 'kombu.transport.gcpubsub:Transport',
}

_transport_cache = {}
Expand Down
Loading

0 comments on commit 6d62a97

Please sign in to comment.