File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
3030resp_content=$( curl -s http://localhost:${port} /status)
3131status=$( echo " ${resp_content} " | jq -r ' .status' )
Original file line number Diff line number Diff line change 3030
3131from typing import Optional
3232from ovos_utils .log import LOG
33- from ovos_utils .process_utils import ProcessStatus , ProcessState
33+ from ovos_utils .process_utils import ProcessStatus
3434from neon_mq_connector .utils .network_utils import b64_to_dict , dict_to_b64
3535from 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 ,
You can’t perform that action at this time.
0 commit comments