Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

A broken PDF should be one row in a report

说明与用途

单个损坏的 PDF 不应中断大批量压缩流程。PDF Batch Resume 将每个 PDF 单独处理,记录错误并恢复队列,避免丢失已完成的工作。

问题

A single corrupted PDF should not halt a large batch compression workflow.

结果

The tool successfully compressed a chart PDF, reported an error for a damaged PDF, and resumed processing after replacing the damaged file, achieving a clean exit code 0.

工作流

  • Launch supervisor script
  • Supervisor spawns a worker subprocess for each PDF with a 120‑second timeout
  • Worker processes PDF using pypdf and Pillow
  • If timeout or error occurs, worker exits with nonzero code
  • Supervisor records error and moves to next file
  • Worker writes journal entry via temporary JSON file
  • If output exists, compare source hash, options, and output hash; report conflict if mismatched
  • On subsequent runs, resume from last unprocessed or conflicted file
  • After replacing damaged PDF, re-run to complete batch

证据

Each PDF gets a fresh worker process.

来源

The default timeout is 120 seconds per PDF.

来源

If an output exists but does not match that evidence, the tool reports a conflict.

来源

The first two runs returned exit code 2: two complete, one needing review.

来源

  • 记录日期: 2026-10-23T18:11:35.428Z