Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m14s
Integration Tests / test-service-integration (push) Failing after 47s
Multi-Node Stress Testing / stress-test (push) Successful in 9s
Python Tests / test-python (push) Failing after 29s
Security Scanning / security-scan (push) Failing after 19s
Systemd Sync / sync-systemd (push) Successful in 28s
- Added configure_logging to __all__ exports in aitbc/__init__.py - Updated adaptive_learning_app.py import to use contexts.ai_analytics.services path - Fixed aitbc-hermes-wrapper.py PYTHONPATH to use examples/stubs/hermes-service - Added /opt/aitbc to PYTHONPATH in systemd service files (api-gateway, governance, gpu, trading)
36 lines
878 B
Python
36 lines
878 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Wrapper script for aitbc-hermes service
|
|
Uses centralized aitbc utilities for path configuration
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
from pathlib import Path
|
|
|
|
# Add aitbc to path
|
|
sys.path.insert(0, str(Path("/opt/aitbc")))
|
|
sys.path.insert(0, str(Path("/opt/aitbc/aitbc")))
|
|
|
|
from aitbc import ENV_FILE, NODE_ENV_FILE, REPO_DIR, DATA_DIR, LOG_DIR
|
|
|
|
# Set up environment using aitbc constants
|
|
os.environ["AITBC_ENV_FILE"] = str(ENV_FILE)
|
|
os.environ["AITBC_NODE_ENV_FILE"] = str(NODE_ENV_FILE)
|
|
os.environ["PYTHONPATH"] = f"{REPO_DIR}/examples/stubs/hermes-service/src"
|
|
os.environ["DATA_DIR"] = str(DATA_DIR)
|
|
os.environ["LOG_DIR"] = str(LOG_DIR)
|
|
|
|
# Execute the actual service
|
|
exec_cmd = [
|
|
"/opt/aitbc/venv/bin/python",
|
|
"-m",
|
|
"uvicorn",
|
|
"hermes_service.main:app",
|
|
"--host",
|
|
"0.0.0.0",
|
|
"--port",
|
|
"8014"
|
|
]
|
|
os.execvp(exec_cmd[0], exec_cmd)
|