chore(config): 工作流配置、清单与文档同步
workflows/schedules/commands/notification-routing 与 source-manifests 四模块 清单同步登录统一化与新工作流(product.hk_anpei_public_inventory.daily 等); docs 运维手册、控制台与耗时分布文档、CI 关键脚本清单、AGENTS 指南更新; 测试与模块注册对齐。
This commit is contained in:
1 parent
90282ae766
commit
dc8be88e60
27 files changed
+1094
-224
No files matched your search
+82
-51
@@ -3,6 +3,11 @@
|
||||
"workflows": [
|
||||
{
|
||||
"id": "content.metrics.daily",
|
||||
"required_accounts": [
|
||||
"douyin-content",
|
||||
"douyin-shop",
|
||||
"xiaohongshu-content"
|
||||
],
|
||||
"module": "content_marketing",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -302,6 +307,11 @@
|
||||
},
|
||||
{
|
||||
"id": "content.metrics.backfill",
|
||||
"required_accounts": [
|
||||
"douyin-content",
|
||||
"douyin-shop",
|
||||
"xiaohongshu-content"
|
||||
],
|
||||
"module": "content_marketing",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -430,56 +440,7 @@
|
||||
"task_name": "YingxiaoYunying_DailyMarketingReport"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "content.relogin.weekly",
|
||||
"module": "content_marketing",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
"steps": [
|
||||
{
|
||||
"id": "relogin",
|
||||
"name": "刷新内容平台登录态",
|
||||
"description": "并行启动五个平台的二维码重新登录流程,按配置轮次重试,持久化登录状态并通知结果。",
|
||||
"data_flow": {
|
||||
"sources": [
|
||||
{
|
||||
"system": "内容平台",
|
||||
"label": "五个平台登录页与当前会话状态"
|
||||
}
|
||||
],
|
||||
"processing": [
|
||||
"并行发起二维码登录并按轮次重试",
|
||||
"校验并持久化新的登录会话"
|
||||
],
|
||||
"destinations": [
|
||||
{
|
||||
"system": "浏览器状态",
|
||||
"label": "各平台 Cookie 与 storage state"
|
||||
},
|
||||
{
|
||||
"system": "飞书",
|
||||
"label": "登录刷新结果通知"
|
||||
}
|
||||
]
|
||||
},
|
||||
"entry": "data/tools/friday_relogin_parallel.py",
|
||||
"args": [
|
||||
"--max-attempts",
|
||||
"3",
|
||||
"--round-timeout",
|
||||
"300",
|
||||
"--screenshot-delay",
|
||||
"60"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"provenance": {
|
||||
"source_project": "content",
|
||||
"task_name": "YingxiaoYunying_FridayRelogin"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
"id": "content.creator_report.monthly",
|
||||
"module": "content_marketing",
|
||||
"trigger": "scheduled",
|
||||
@@ -781,6 +742,9 @@
|
||||
},
|
||||
{
|
||||
"id": "shop.metrics.weekly",
|
||||
"required_accounts": [
|
||||
"douyin-shop"
|
||||
],
|
||||
"module": "shop_intelligence",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -890,6 +854,9 @@
|
||||
},
|
||||
{
|
||||
"id": "shop.competitor.weekly",
|
||||
"required_accounts": [
|
||||
"douyin-shop"
|
||||
],
|
||||
"module": "shop_intelligence",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -1592,6 +1559,10 @@
|
||||
},
|
||||
{
|
||||
"id": "product.daily",
|
||||
"required_accounts": [
|
||||
"douyin-shop",
|
||||
"erp-jushuitan"
|
||||
],
|
||||
"module": "product_commerce",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -1916,6 +1887,7 @@
|
||||
],
|
||||
"processing": [
|
||||
"校验广告主 ID、店铺标识和商品数据明细",
|
||||
"任务中心被重定向到账户选择页时自动点击目标广告主后重试",
|
||||
"按业务日期下载原始 Excel",
|
||||
"重置千川错误的 worksheet A1 dimension 并校验日期覆盖"
|
||||
],
|
||||
@@ -2231,6 +2203,54 @@
|
||||
},
|
||||
"note": "每天自动采集昨天数据;控制台可手动选择任意补采日期并幂等覆盖该日。全选聚水潭全部店铺,不拆京东、抖音、天猫;每次只采集一个业务日期。"
|
||||
},
|
||||
{
|
||||
"id": "product.hk_anpei_public_inventory.daily",
|
||||
"module": "product_commerce",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
"steps": [
|
||||
{
|
||||
"id": "query_and_refresh_sheet",
|
||||
"name": "刷新香港安沛 SKU 公有可用数",
|
||||
"description": "校验计划书固定 SKU 与现有库存工作表中的商品编码对应关系,调用聚水潭 /open/inventory/query 查询库存及锁定量,并将公有可用数写入仓库现有库存列。",
|
||||
"entry": "public_sku_inventory_sheet.py",
|
||||
"timeout_seconds": 900,
|
||||
"replay_policy": "idempotent",
|
||||
"data_flow": {
|
||||
"sources": [
|
||||
{
|
||||
"system": "光影行星香港安沛2026Q2计划书",
|
||||
"label": "现有库存表的 51 个唯一 SKU"
|
||||
},
|
||||
{
|
||||
"system": "聚水潭开放 API",
|
||||
"label": "/open/inventory/query",
|
||||
"detail": "请求 has_lock_qty=true 以取得库存锁定量"
|
||||
}
|
||||
],
|
||||
"processing": [
|
||||
"校验整批 SKU 库存响应后再写入飞书",
|
||||
"按商品编码(光影)匹配行;公有可用数 = qty - order_lock - lock_qty + virtual_qty",
|
||||
"没有库存记录的 SKU 清空仓库现有库存单元格",
|
||||
"仅写入仓库现有库存列,不覆盖图片、备注、在途生产或其它字段"
|
||||
],
|
||||
"destinations": [
|
||||
{
|
||||
"system": "飞书电子表格",
|
||||
"label": "光影行星香港安沛2026Q2計劃書",
|
||||
"detail": "現有庫存工作表;按商品编码(光影)更新 D 列仓库现有库存"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"provenance": {
|
||||
"source_project": "data-hub",
|
||||
"task_name": "HongKongAnpeiPublicSkuInventoryDaily"
|
||||
},
|
||||
"note": "每天 Asia/Shanghai 09:00 执行。聚水潭应用凭据从 GYXX 调度进程环境读取;不得使用开发配置默认值。"
|
||||
},
|
||||
{
|
||||
"id": "product.video_upload",
|
||||
"module": "product_commerce",
|
||||
@@ -2350,7 +2370,6 @@
|
||||
"args": [
|
||||
"--anchor-record-id",
|
||||
"recvrXTRWWFXeJ",
|
||||
"--manual-login",
|
||||
"--execute"
|
||||
],
|
||||
"timeout_seconds": 21600
|
||||
@@ -2607,6 +2626,9 @@
|
||||
},
|
||||
{
|
||||
"id": "supply.purchase_confirmation.daily",
|
||||
"required_accounts": [
|
||||
"erp-jushuitan"
|
||||
],
|
||||
"module": "supply_chain",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -2657,6 +2679,9 @@
|
||||
},
|
||||
{
|
||||
"id": "supply.replenishment.weekly",
|
||||
"required_accounts": [
|
||||
"erp-jushuitan"
|
||||
],
|
||||
"module": "supply_chain",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -2712,6 +2737,9 @@
|
||||
},
|
||||
{
|
||||
"id": "supply.replenishment_alert.daily",
|
||||
"required_accounts": [
|
||||
"erp-jushuitan"
|
||||
],
|
||||
"module": "supply_chain",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
@@ -2811,6 +2839,9 @@
|
||||
},
|
||||
{
|
||||
"id": "product.market_rank",
|
||||
"required_accounts": [
|
||||
"douyin-shop"
|
||||
],
|
||||
"module": "product_commerce",
|
||||
"trigger": "scheduled",
|
||||
"execution": {
|
||||
|
||||
Reference in new issue
Block a user