店铺违规预警:补充生产每日同步定时任务(cron 遗漏) #315

Merged
renshen merged 1 commits from fix/sumu-store-violations-daily-sync into main 2026-10-13 09:36:15 +08:00
Collaborator

实际改动

  • deploy/activate-release.sh、deploy/activate-incremental-release.sh:生成的 /etc/cron.d/caiwu-jiansun-snapshots 中登记 store-violations:sync(每天 05:30,复用 /run/caiwu-upstream-sync.lock)。
  • tests/Unit/Deployment/BusinessMirrorScheduleTest.php:断言新增调度项。

背景

生产不运行 Laravel 调度器(只执行已登记的 cron 列表),Kernel 里 05:30 的 store-violations:sync 从未在生产生效。店铺违规预警页面“最近同步”停留在 2026-10-06(首次手工同步),10-07 起连同步尝试记录都没有。

验证

  • phpunit tests/Unit/Deployment/BusinessMirrorScheduleTest.php → OK (6 tests, 120 assertions)
  • bash -n 两个 activate 脚本通过;git diff --check 干净。

风险

  • 不涉及金额、权限、审批、数据库迁移或数据修复。
  • 仅调整发布脚本生成的 cron 内容;回滚为移除对应两行后重新发布。
  • 未提交任何凭据或构建产物。
## 实际改动 - deploy/activate-release.sh、deploy/activate-incremental-release.sh:生成的 /etc/cron.d/caiwu-jiansun-snapshots 中登记 store-violations:sync(每天 05:30,复用 /run/caiwu-upstream-sync.lock)。 - tests/Unit/Deployment/BusinessMirrorScheduleTest.php:断言新增调度项。 ## 背景 生产不运行 Laravel 调度器(只执行已登记的 cron 列表),Kernel 里 05:30 的 store-violations:sync 从未在生产生效。店铺违规预警页面“最近同步”停留在 2026-10-06(首次手工同步),10-07 起连同步尝试记录都没有。 ## 验证 - phpunit tests/Unit/Deployment/BusinessMirrorScheduleTest.php → OK (6 tests, 120 assertions) - bash -n 两个 activate 脚本通过;git diff --check 干净。 ## 风险 - 不涉及金额、权限、审批、数据库迁移或数据修复。 - 仅调整发布脚本生成的 cron 内容;回滚为移除对应两行后重新发布。 - 未提交任何凭据或构建产物。
renshen added 1 commit 2026-10-13 09:36:09 +08:00
- activate-release.sh / activate-incremental-release.sh:生成的 cron 中登记 store-violations:sync,每天 05:30 执行,复用 caiwu-upstream-sync 锁
- BusinessMirrorScheduleTest:断言新增调度项
- 背景:生产不运行 Laravel 调度器,Kernel 里的 05:30 调度从未生效;10-06 首次同步为手工执行,此后页面一直停在 10-06
renshen merged commit e61e3b50fb into main 2026-10-13 09:36:15 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#315
No description provided.