fix(douyu): 补全账号能力目录并回收失效租约

This commit is contained in:
yml
2026-11-22 20:36:40 +08:00
parent 1906f924bc
commit af05c54c3f
18 changed files with 839 additions and 121 deletions
+5 -1
View File
@@ -127,8 +127,11 @@ def register_default_jobs() -> None:
key=ACCOUNT_CAPABILITY_REFRESH_KEY,
title="履约商品能力补充刷新",
# 只刷新有 pending 履约需求且能力快照已过期的账号。
# 2026-11-22:作业本身只做本地候选筛选,外部请求交给独立
# account_sync_queue。每分钟补到有界水位,避免需求补货被通用
# 供给作业挤占,也避免一次塞入数百条积压。
interval_seconds=3600,
run_interval_seconds=5 * 60,
run_interval_seconds=60,
batch_size=100,
concurrency=3,
run=run_account_capability_refresh,
@@ -218,5 +221,6 @@ def register_default_jobs() -> None:
batch_size=500,
concurrency=1,
run=run_platform_fulfillment_lease_reaper,
default_enabled=True,
)
)