Health Check Endpoint
oranuare
PROOP

6 months ago

Hi guys, I need some help here, what am I doing wrong?

I'm trying to setup a health check endpoint for a redis python worker, I created the endpoint with fastapi.

This is my start command:

"startCommand": "python app/main.py & uvicorn app.healthcheck:app --host :: --port $PORT"

The health endpoint I tried /health, private-nework:PORT/health, private-nework/health

And none of those work 🤔

Solved

4 Replies

oranuare
PROOP

6 months ago

Uvicorn is running correctly


6 months ago

You need to listen on 0.0.0.0 for the health check to work.


oranuare
PROOP

6 months ago

Thank you Brody, now its working


6 months ago

!s


Status changed to Solved brody • 6 months ago


Loading...