chore: 迁移项目路径 C:\NeoZQYY → C:\Project\NeoZQYY
开发环境从旧虚拟机 (DESKTOP-KGB0K5G) 迁移到新机器 (DESKTOP-D676QDA), 项目目录从 C:\NeoZQYY 变更为 C:\Project\NeoZQYY, 批量替换 126 个文件中的绝对路径引用。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,14 +14,14 @@ CONTEXT TRANSFER: We are continuing a conversation that had gotten too long. Her
|
||||
**DETAILS**:
|
||||
|
||||
Two spurious `Asia/Shanghai/ODS_JSON_ARCHIVE/` directory trees were found:
|
||||
1. `C:\NeoZQYY\Asia\Shanghai\ODS_JSON_ARCHIVE\` — 2 empty run dirs (created 2026-02-20 9:59)
|
||||
2. `C:\NeoZQYY\apps\etl\connectors\feiqiu\Asia\Shanghai\ODS_JSON_ARCHIVE\` — 38 empty run dirs (created from 2026-02-19 23:29)
|
||||
1. `C:\Project\NeoZQYY\Asia\Shanghai\ODS_JSON_ARCHIVE\` — 2 empty run dirs (created 2026-02-20 9:59)
|
||||
2. `C:\Project\NeoZQYY\apps\etl\connectors\feiqiu\Asia\Shanghai\ODS_JSON_ARCHIVE\` — 38 empty run dirs (created from 2026-02-19 23:29)
|
||||
|
||||
Both contain only empty subdirectories (no actual JSON files). The directory structure `Asia/Shanghai/ODS_JSON_ARCHIVE/ODS_JSON_ARCHIVE-{timestamp}` matches what `_build_fetch_dir` would produce if `self.fetch_root` resolved to `"Asia/Shanghai"` (i.e., `str(ZoneInfo("Asia/Shanghai"))`).
|
||||
|
||||
**Root cause analysis performed (not yet concluded)**:
|
||||
|
||||
- `.env` files (both root and `feiqiu/.env`) currently have correct `FETCH_ROOT=C:/NeoZQYY/export/ETL-Connectors/feiqiu/JSON`
|
||||
- `.env` files (both root and `feiqiu/.env`) currently have correct `FETCH_ROOT=C:/Project/NeoZQYY/export/ETL-Connectors/feiqiu/JSON`
|
||||
- `AppConfig.load()` currently returns correct `io.fetch_root` value — verified via Python one-liner
|
||||
- `task_executor.py` line 63-68: `self.fetch_root` reads from `config.get("io.fetch_root") or config.get("pipeline.fetch_root") or config["io"]["export_root"]`
|
||||
- `_build_fetch_dir` returns `Path(self.fetch_root) / task_code / f"{task_code}-{run_id}-{ts}"`
|
||||
@@ -31,7 +31,7 @@ Both contain only empty subdirectories (no actual JSON files). The directory str
|
||||
- Both `Asia/` dirs are NOT in git, NOT in `.gitignore`
|
||||
- `feiqiu/.env` was last modified 2026-02-20 0:10, but `feiqiu/Asia` was created 2026-02-19 23:29 (BEFORE the .env edit)
|
||||
- `feiqiu/.env` was created 2026-02-19 16:47
|
||||
- The git-committed version of `feiqiu/.env` had `FETCH_ROOT=C:/NeoZQYY/export/ETL/JSON` (old path)
|
||||
- The git-committed version of `feiqiu/.env` had `FETCH_ROOT=C:/Project/NeoZQYY/export/ETL/JSON` (old path)
|
||||
- Backend subprocess passes `os.environ.copy()` to ETL CLI child process, with `cwd=ETL_PROJECT_PATH` (feiqiu dir)
|
||||
- `env_parser._load_dotenv_values` reads from `Path(__file__).resolve().parents[1] / ".env"` (i.e., `feiqiu/.env`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user