feat(file-check): 更新文件检核工具 API Key 配置及相关文档
This commit is contained in:
1 parent
634dee4b81
commit
55cf7ff734
74 files changed
+1525
-1182
No files matched your search
@@ -31,6 +31,7 @@ _UPLOAD_SUCCESS_EVENTS = {
|
||||
|
||||
|
||||
def inventory_rpa_attempts(task: ShippingTask | None) -> int:
|
||||
"""统计自上次库存成功事件以来的 RPA 库存导出触发/失败次数。"""
|
||||
if not task or task.id is None:
|
||||
return 0
|
||||
|
||||
@@ -56,6 +57,7 @@ def inventory_rpa_attempts(task: ShippingTask | None) -> int:
|
||||
|
||||
|
||||
def upload_rpa_attempts(task: ShippingTask | None) -> int:
|
||||
"""统计自上次上传成功事件以来的 RPA 货代上传触发/失败次数。"""
|
||||
if not task or task.id is None:
|
||||
return 0
|
||||
|
||||
@@ -81,6 +83,7 @@ def upload_rpa_attempts(task: ShippingTask | None) -> int:
|
||||
|
||||
|
||||
def max_rpa_inventory_attempts() -> int:
|
||||
"""RPA 库存导出最大重试次数(环境变量 SHIPPING_NOTICE_RPA_INVENTORY_MAX_ATTEMPTS)。"""
|
||||
value = os.getenv("SHIPPING_NOTICE_RPA_INVENTORY_MAX_ATTEMPTS")
|
||||
if value is None or not str(value).strip():
|
||||
return DEFAULT_RPA_INVENTORY_MAX_ATTEMPTS
|
||||
@@ -92,6 +95,7 @@ def max_rpa_inventory_attempts() -> int:
|
||||
|
||||
|
||||
def max_rpa_upload_attempts() -> int:
|
||||
"""RPA 货代上传最大重试次数(环境变量 SHIPPING_NOTICE_RPA_UPLOAD_MAX_ATTEMPTS)。"""
|
||||
value = os.getenv("SHIPPING_NOTICE_RPA_UPLOAD_MAX_ATTEMPTS")
|
||||
if value is None or not str(value).strip():
|
||||
return DEFAULT_RPA_UPLOAD_MAX_ATTEMPTS
|
||||
|
||||
Reference in new issue
Block a user