django-streaming 0.2__tar.gz → 0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_streaming-0.2 → django_streaming-0.3}/PKG-INFO +1 -1
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/backends/rabbitmq.py +3 -2
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/version.py +2 -2
- {django_streaming-0.2 → django_streaming-0.3}/.gitignore +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/LICENSE +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/README.md +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/pyproject.toml +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/__cli__.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/api.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/apps.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/backends/__init__.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/backends/_base.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/backends/console.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/backends/debug.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/backends/redis.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/config.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/exceptions.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/handlers.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/manager.py +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/py.typed +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/types.pyi +0 -0
- {django_streaming-0.2 → django_streaming-0.3}/src/streaming/utils.py +0 -0
|
@@ -81,12 +81,13 @@ class RabbitMQBackend(BaseBackend):
|
|
|
81
81
|
time.sleep(CONFIG.RETRY_DELAY)
|
|
82
82
|
logger.critical("Could not connect to RabbitMQ after multiple retries.")
|
|
83
83
|
|
|
84
|
-
def listen(self, domains: list[str], callback: "PikaCallback") -> None:
|
|
84
|
+
def listen(self, domains: list[str], callback: "PikaCallback", ack: bool = True) -> None:
|
|
85
85
|
def _callback(
|
|
86
86
|
ch: "BlockingChannel", method: "Basic.Deliver", properties: "BasicProperties", body: bytes
|
|
87
87
|
) -> None:
|
|
88
88
|
callback(ch, method, properties, body)
|
|
89
|
-
|
|
89
|
+
if ack:
|
|
90
|
+
ch.basic_ack(delivery_tag=method.delivery_tag) # type: ignore[arg-type]
|
|
90
91
|
|
|
91
92
|
if self.channel is None:
|
|
92
93
|
self.connect()
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.
|
|
32
|
-
__version_tuple__ = version_tuple = (0,
|
|
31
|
+
__version__ = version = '0.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 3)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|