补全任务与测试

This commit is contained in:
Neo
2025-11-19 03:36:44 +08:00
parent 5bb5a8a568
commit 9a1df70a23
31 changed files with 3034 additions and 6 deletions

View File

@@ -76,6 +76,14 @@ DEFAULTS = {
"redact_keys": ["token", "password", "Authorization"],
"echo_token_in_logs": False,
},
"testing": {
# ONLINE: 正常实时ETLOFFLINE: 读取归档JSON做T/L
"mode": "OFFLINE",
# 离线归档JSON所在目录
"json_archive_dir": "",
# 测试运行时用于生成/复制临时JSON的目录
"temp_json_dir": "",
},
}
# 任务代码常量

View File

@@ -24,6 +24,9 @@ ENV_MAP = {
"OVERLAP_SECONDS": ("run.overlap_seconds",),
"WINDOW_BUSY_MIN": ("run.window_minutes.default_busy",),
"WINDOW_IDLE_MIN": ("run.window_minutes.default_idle",),
"TEST_MODE": ("testing.mode",),
"TEST_JSON_ARCHIVE_DIR": ("testing.json_archive_dir",),
"TEST_JSON_TEMP_DIR": ("testing.temp_json_dir",),
}
def _deep_set(d, dotted_keys, value):