fix: batch_process missing raw_dir arg causing L4 archive to fail

This commit is contained in:
Liang Jiaqing
2026-04-15 18:31:29 +08:00
parent e3a2526932
commit da8bba99a5

View File

@@ -64,7 +64,8 @@ def check():
try:
import sys; sys.path.insert(0, os.path.join(_dir, '../memory/L4_raw_sessions'))
from compress_session import batch_process
r = batch_process(dry_run=False)
raw_dir = os.path.join(_dir, '../temp/model_responses')
r = batch_process(raw_dir, dry_run=False)
print(f'[L4 cron] {r}')
except Exception as e:
_logger.error(f'L4 archive failed: {e}')