typoo fix
Browse files
__pycache__/inference_svm_model.cpython-310.pyc
DELETED
Binary file (1.19 kB)
|
|
__pycache__/mineru_single.cpython-310.pyc
DELETED
Binary file (3.45 kB)
|
|
__pycache__/worker.cpython-310.pyc
DELETED
Binary file (4.05 kB)
|
|
worker.py
CHANGED
@@ -22,9 +22,9 @@ class RabbitMQWorker:
|
|
22 |
|
23 |
|
24 |
def setup_publisher(self):
|
25 |
-
if not self.
|
26 |
connection_params = pika.URLParameters(self.rabbit_url)
|
27 |
-
connection_params.heartbeat =
|
28 |
connection_params.blocked_connection_timeout = 300 # Increase timeout
|
29 |
|
30 |
self.publisher_connection = pika.BlockingConnection(connection_params)
|
|
|
22 |
|
23 |
|
24 |
def setup_publisher(self):
|
25 |
+
if not self.publisher_connection or self.publisher_connection.is_closed:
|
26 |
connection_params = pika.URLParameters(self.rabbit_url)
|
27 |
+
connection_params.heartbeat = 600 # Match the consumer heartbeat
|
28 |
connection_params.blocked_connection_timeout = 300 # Increase timeout
|
29 |
|
30 |
self.publisher_connection = pika.BlockingConnection(connection_params)
|