style: 修复订单与调度相关 Prettier 格式
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -277,7 +277,8 @@ export async function syncStoreOrders(
|
||||
}).catch(() => null)
|
||||
|
||||
// 仅「真正新单 / 失败 / 多页回填」打 info;常态触达旧单后停页的空跑降到 debug。
|
||||
const storeDoneLog = totalNewOrders > 0 || totalFailed > 0 || pagesFetched > 1 ? logInfo : logDebug
|
||||
const storeDoneLog =
|
||||
totalNewOrders > 0 || totalFailed > 0 || pagesFetched > 1 ? logInfo : logDebug
|
||||
storeDoneLog('[pdd-sync]', `店铺 ${shopName} 同步完成 (共拉取 ${pagesFetched} 页)`, {
|
||||
shopId,
|
||||
total: totalReported,
|
||||
|
||||
@@ -150,7 +150,8 @@ async function runJob(job: JsonObject, { manual = false }: { manual?: boolean }
|
||||
const status = String(summary.status || 'ok')
|
||||
const failedCount = Number(summary.failedCount || 0)
|
||||
// 成功且无失败的周期空跑降到 debug(PDD 约 20s 一轮),手动触发与失败仍保留 info。
|
||||
const isQuietSuccess = !manual && status === 'ok' && failedCount <= 0 && job.type !== 'data_retention'
|
||||
const isQuietSuccess =
|
||||
!manual && status === 'ok' && failedCount <= 0 && job.type !== 'data_retention'
|
||||
const doneLog = isQuietSuccess ? logDebug : logInfo
|
||||
doneLog('[scheduler]', '定时任务执行完成', {
|
||||
jobId,
|
||||
|
||||
Reference in New Issue
Block a user