initial: import DOLPHIN baseline 2026-04-21 from dolphinng5_predict working tree
Includes core prod + GREEN/BLUE subsystems: - prod/ (BLUE harness, configs, scripts, docs) - nautilus_dolphin/ (GREEN Nautilus-native impl + dvae/ preserved) - adaptive_exit/ (AEM engine + models/bucket_assignments.pkl) - Observability/ (EsoF advisor, TUI, dashboards) - external_factors/ (EsoF producer) - mc_forewarning_qlabs_fork/ (MC regime/envelope) Excludes runtime caches, logs, backups, and reproducible artifacts per .gitignore.
This commit is contained in:
27
prod/services/test_service.py
Executable file
27
prod/services/test_service.py
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Test service to validate the setup"""
|
||||
import asyncio
|
||||
import sys
|
||||
sys.path.insert(0, '/mnt/dolphinng5_predict/prod')
|
||||
|
||||
from services.service_base import ServiceBase
|
||||
|
||||
class TestService(ServiceBase):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
name='test',
|
||||
check_interval=5,
|
||||
max_retries=3,
|
||||
notify_systemd=True
|
||||
)
|
||||
self.counter = 0
|
||||
|
||||
async def run_cycle(self):
|
||||
self.counter += 1
|
||||
self.logger.info(f"Test cycle {self.counter}")
|
||||
await asyncio.sleep(2)
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("Starting test service...")
|
||||
service = TestService()
|
||||
service.run()
|
||||
Reference in New Issue
Block a user