Update rabbitmq health check
This commit is contained in:
parent
2615aff732
commit
747847a8f3
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user