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) document = await DocumentDoc.find_one(DocumentDoc.document_id == document_id)
if not document: if not document:
raise DoesNotExistError( raise DoesNotExistError(
"Cannot find record with document id {document_id}".format( f"Cannot find record with document id {document_id}"
self.document_id
),
) )
self.__document_doc = document self.__document_doc = document
return return

View File

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