refactor: 迁移增量同步开关到渠道侧

This commit is contained in:
2026-08-21 12:17:07 +08:00
parent e030ca6e0a
commit b6891b16e3
12 changed files with 159 additions and 64 deletions
@@ -23,7 +23,7 @@
-- 例:pdd.order.list.get 商家 10000次/60秒,接口总 17500次/10秒
-- 7. SDK 未内置限流;出站前按「店铺 + API」经 PddPopRateLimiter,触限阻塞/退避,不推进游标
-- 8. 同步控制面(已废弃 channel_pdd_order_sync_cursor):
-- · 增量开关:ec_shop.order_inc_sync_enabled
-- · 增量开关:channel_pdd_shop.order_inc_sync_enabled
-- · 增量运行态(游标/出错暂停):channel_pdd_order_inc_sync(每渠道店一行)
-- · 全量任务进度:channel_pdd_order_full_sync_task
-- ========================================
@@ -36,7 +36,7 @@ DROP TABLE IF EXISTS `channel_pdd_order_inc_sync`;
DROP TABLE IF EXISTS `channel_pdd_order_sync_cursor`;
-- ========================================
-- 拼多多订单增量同步状态表(每渠道店一行;开关在 ec_shop)
-- 拼多多订单增量同步状态表(每渠道店一行;开关在 channel_pdd_shop)
-- status: 0停用 1正常 2出错暂停(Job 跳过 status=2,直至人工恢复)
-- ========================================
CREATE TABLE `channel_pdd_order_inc_sync` (