Skip to content

Commit

Permalink
Speed up queues
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Dec 13, 2024
1 parent 1f0294f commit 84ed069
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "queue-processor"
version = "2024.12.12.2"
version = "2024.12.13.1"
description = "Manage queues on Uwazi services"
license = { file = "LICENSE" }
authors = [{ name = "HURIDOCS" }]
Expand Down
2 changes: 1 addition & 1 deletion src/check_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from rsmq import RedisSMQ

QUEUES_NAMES = ["development_ocr"]
QUEUES_NAMES = ["development_segmentation", "development_ocr"]

if __name__ == "__main__":
for i in range(100):
Expand Down
2 changes: 1 addition & 1 deletion src/queue_processor/QueueProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def start(self, process: callable, restart_condition: Callable = None):
break

except NoMessageInQueue:
sleep(2)
sleep(0.3)
except redis.exceptions.ConnectionError:
self.exists_queues = False
self.queue_processor_logger.error(f"Error connecting to Redis: {self.redis_host}:{self.redis_port}")
Expand Down

0 comments on commit 84ed069

Please sign in to comment.