21 lines
593 B
Python
21 lines
593 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
import sys
|
||
|
|
sys.path.insert(0, '/home/bernt/.openclaw/workspace/life-agents')
|
||
|
|
from continuous_pipeline import run_continuous_analysis
|
||
|
|
import time
|
||
|
|
from datetime import datetime
|
||
|
|
|
||
|
|
print(f"[{datetime.now().isoformat()}] LIFE Daemon started")
|
||
|
|
|
||
|
|
cycle = 0
|
||
|
|
while True:
|
||
|
|
cycle += 1
|
||
|
|
try:
|
||
|
|
changes = run_continuous_analysis()
|
||
|
|
print(f"[{datetime.now().isoformat()}] Cycle {cycle}: {changes} changes detected")
|
||
|
|
except Exception as e:
|
||
|
|
print(f"[{datetime.now().isoformat()}] Error: {e}")
|
||
|
|
|
||
|
|
# Vänta 5 minuter mellan analyser
|
||
|
|
time.sleep(300)
|