Skip to content

Commit eb7051b

Browse files
committed
Update health checks to use standard port 8000
1 parent 5c67e61 commit eb7051b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docker_overlay/opt/neon/healthcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2626
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727

28-
port="${HEALTHCHECK_PORT:-8080}"
28+
port="${HEALTHCHECK_PORT:-8000}"
2929
# Perform the health check using curl
3030
resp_content=$(curl -s http://localhost:${port}/status)
3131
status=$(echo "${resp_content}" | jq -r '.status')

neon_api_proxy/api_connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
from typing import Optional
3232
from ovos_utils.log import LOG
33-
from ovos_utils.process_utils import ProcessStatus, ProcessState
33+
from ovos_utils.process_utils import ProcessStatus
3434
from neon_mq_connector.utils.network_utils import b64_to_dict, dict_to_b64
3535
from neon_mq_connector.connector import MQConnector
3636

@@ -58,7 +58,7 @@ def check_health(self) -> bool:
5858
if not MQConnector.check_health(self):
5959
self.status.set_error("MQConnector health check failed")
6060
return False
61-
return self.status == ProcessState.READY
61+
return self.status.check_ready()
6262

6363
def handle_api_input(self,
6464
channel: pika.channel.Channel,

0 commit comments

Comments
 (0)