fix pre-check issue

This commit is contained in:
harisreedhar
2026-05-11 16:35:16 +02:00
committed by henryruhs
parent f83ff29116
commit 47bdcd67f1
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -54,6 +54,9 @@ def route(args : Args) -> None:
benchmarker.render()
if state_manager.get_item('command') == 'api':
if not common_pre_check() or not processors_pre_check():
hard_exit(2)
logger.info(translator.get('api_started').format(host = state_manager.get_item('api_host'), port = state_manager.get_item('api_port')), __name__)
uvicorn.run(create_api(), host = state_manager.get_item('api_host'), port = state_manager.get_item('api_port'))
hard_exit(1)