Skip to content

Commit

Permalink
Merge pull request #301 from cardanoapi/fix/backend-health-check
Browse files Browse the repository at this point in the history
fix: fix healthcheck in backend
  • Loading branch information
Sital999 authored Jan 8, 2025
2 parents 1534017 + 9e53f43 commit 08f9670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/backend/app/services/kafka_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async def start(self):
async def stop(self):
if settings.KAFKA_ENABLED:
await self.producer.stop()
await self.consumer.stop()

async def publish_message(self, topic: str, message: str, key: Optional[str]):
if settings.KAFKA_ENABLED:
Expand Down
2 changes: 1 addition & 1 deletion api/healthcheck.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests

try:
response = requests.get("http://localhost:8000/api/ready")
response = requests.get("http://localhost:8000/api/health")
if response.status_code == 200:
print("Healthcheck: OK")
exit(0)
Expand Down

0 comments on commit 08f9670

Please sign in to comment.