This commit is contained in:
lz_db
2025-12-05 13:25:26 +08:00
parent efbcb63cec
commit 64c993319a
8 changed files with 205 additions and 17 deletions

View File

@@ -17,6 +17,8 @@ REDIS_CONFIG = {
SYNC_CONFIG = {
'interval': int(os.getenv('SYNC_INTERVAL', 60)), # 同步间隔(秒)
'recent_days': int(os.getenv('RECENT_DAYS', 3)), # 同步最近几天数据
'recent_days_account': int(os.getenv('ACCOUNT_SYNC_RECENT_DAYS', 3)), # 同步最近几天数据
'recent_days_order': int(os.getenv('ORDER_SYNC_RECENT_DAYS', 3)), # 同步最近几天数据
'chunk_size': int(os.getenv('CHUNK_SIZE', 1000)), # 批量处理大小
'enable_position_sync': os.getenv('ENABLE_POSITION_SYNC', 'true').lower() == 'true',
'enable_order_sync': os.getenv('ENABLE_ORDER_SYNC', 'true').lower() == 'true',