feat(schedule): 增加库存源选项描述字段与站点ID支持

This commit is contained in:
hugo committed 2026-07-10 00:48:27 +08:00
1 parent f4e74f7b07
commit 8b1efbedb9
37 files changed
+8488 -4126

No files matched your search

+1 -2
View File
@@ -62,7 +62,6 @@ def _with_warehouse(source: dict[str, Any], warehouse: str, *, keep_source_code:
if not keep_source_code:
cloned["source_code"] = f"DSV360_AWSBI_{wh}"
cloned["warehouse_id"] = wh
cloned["warehouse_code"] = wh
query = dict(cloned.get("query") or {})
query["warehouse_code"] = wh
cloned["query"] = query
@@ -115,7 +114,7 @@ def _run_batch_exports(worker: Any, scenario: str, sources: list[dict[str, Any]]
previous_source: dict[str, Any] | None = None
for index, source in enumerate(sources):
code = str(source.get("source_code") or "")
wh = str(source.get("warehouse_id") or source.get("warehouse_code") or "")
wh = str(source.get("warehouse_id") or "")
print(
f"[batch-smoke] scenario={scenario} step={index + 1}/{len(sources)} "
f"source_code={code} warehouse={wh}"