1
0
forked from erp-dev/erp

feat: backfill external order image upgrade to beat schedule by 1 hour

This commit is contained in:
2026-03-31 18:10:24 +08:00
parent aff10b8925
commit 72840b7277
12 changed files with 1085 additions and 108 deletions

View File

@@ -593,6 +593,14 @@ CELERY_BEAT_SCHEDULE = {
'limit': 100,
},
},
'backfill_external_product_images_hourly': {
'task': 'api_v1.tasks.backfill_external_product_images',
'schedule': crontab(minute=17),
'kwargs': {
'limit': 500,
'dry_run': False,
},
},
# 明道云开版:同步到“暂存表”
# - 仅在 02:00-08:00 时间窗内持续运行(每 N 分钟触发一次)
# - 通过 request_interval_seconds 控制单次任务对明道云 API 的请求节奏,避免超 QPS