mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
Root cause: recoverOnStartup() only reset mate_wiki_processing_job rows, not mate_wiki_raw_material. claimForProcessing() only accepts pending, so restart-orphaned processing rows were permanently stuck — frontend showed "preparing..." forever. Fix: - Add WikiRawMaterialService.recoverStuckRawMaterialsOnStartup(): resets processing→pending, clears progress fields, fires WikiProcessingEvent when autoProcessOnUpload is enabled - WikiAutoConfiguration: call raw recovery after job recovery - Execution order: job table first (queued), then raw table (pending) Test: WikiRawMaterialRecoveryTest — 4 cases: reset + events, reset without events (autoProcess=false), noop on empty. |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||