微信审核回调改为先落库后应答并异步探测补偿
- 回调到达即持久化解密报文与 trace_id,落库失败返回 500 让微信重试 - 异步执行器按环境顺序探测认领,状态机 PENDING/PROCESSING/SUCCESS/NO_ENV/FAILED/DEAD - 定时补偿按 30/120/600/3600 秒退避,达到上限置 DEAD 并告警,启动时恢复未完成任务 - 数据库条件更新抢锁保证多实例只处理一次,新增 V22 迁移与管理端重试配置/明细
This commit is contained in:
@@ -1598,6 +1598,8 @@ export interface SecureIntegrationConfigVO {
|
||||
moderationForwardTargets?: Record<string, string>
|
||||
moderationForwardOrder?: string[]
|
||||
moderationForwardSecretConfigured?: boolean
|
||||
moderationForwardMaxRetry?: number
|
||||
moderationForwardBackoffSeconds?: number[]
|
||||
moderationForwardRecent?: ModerationForwardRecordVO[]
|
||||
encryptionKeyConfigured: boolean
|
||||
updatedAt?: string
|
||||
@@ -1609,9 +1611,12 @@ export interface ModerationForwardRecordVO {
|
||||
traceId: string
|
||||
sourceEnv?: string
|
||||
targetEnv?: string
|
||||
status: 'CLAIMED' | 'NO_ENV' | 'PENDING' | 'SUCCESS' | 'RETRY' | 'FAILED' | 'TARGET_MISSING' | string
|
||||
status: 'CLAIMED' | 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'NO_ENV' | 'FAILED' | 'DEAD' | 'RETRY' | 'TARGET_MISSING' | string
|
||||
retryCount?: number
|
||||
lastError?: string
|
||||
payload?: string
|
||||
nextAttemptAt?: string
|
||||
finishedAt?: string
|
||||
createdAt?: string
|
||||
updatedAt?: string
|
||||
}
|
||||
@@ -1662,6 +1667,8 @@ export interface SecureIntegrationConfigUpdate {
|
||||
moderationForwardOrder?: string[]
|
||||
moderationForwardSecret?: string
|
||||
clearModerationForwardSecret?: boolean
|
||||
moderationForwardMaxRetry?: number
|
||||
moderationForwardBackoffSeconds?: number[]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user