Update rabbitmq health check

This commit is contained in:
jetli 2024-10-23 04:08:53 +00:00
parent 2615aff732
commit 747847a8f3
2 changed files with 2 additions and 4 deletions

View File

@ -60,9 +60,7 @@ class DocumentService:
document = await DocumentDoc.find_one(DocumentDoc.document_id == document_id)
if not document:
raise DoesNotExistError(
"Cannot find record with document id {document_id}".format(
self.document_id
),
f"Cannot find record with document id {document_id}"
)
self.__document_doc = document
return

View File

@ -7,7 +7,7 @@ services:
networks:
- freeleaps_service_hub_network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:15672" ]
test: [ "CMD", "rabbitmq-diagnostics", "ping" ]
interval: 30s
retries: 5
start_period: 10s