2 Commits

Author SHA1 Message Date
4f23e07bcd fix: cron dspy移除import + load_path.py添加cron权限(any) + stat_total_users
- cron/*.dspy: 移除import,改为调用init.py注册的cron_etl_*函数
- init.py: 新增cron_etl_sync/aggregate/provider_cost函数(含IP白名单校验)
- load_path.py: 添加3个cron dspy路径为any角色,补充stat_total_users.ui
- dspy内权限: request['client_ip']不在127.0.0.1则拒绝
2026-07-20 10:55:05 +08:00
8a97ea4a86 refactor: rename sage_datamark → sage_datamart + add ETL cron + stat UIs
- Rename package directory and all references from sage_datamark to sage_datamart
- Add 3 ETL cron dspy files (sync/aggregate/provider_cost) for scheduled data pipelines
- Add 5 stat UI files (total_users/fail_calls/success_rate/avg_ttft/total_calls)
- Register j2_ template functions in init.py for UI rendering
- Move j2_avg_ttft SQL to dashboards.py for DRY
- Clean unused imports (getConfig/DBPools/exception)
- Update git remote to sage_datamart.git
2026-07-20 10:49:15 +08:00