Make the producer sign for the nothing it produced
说明与用途
在自动化流水线中,空队列往往被误认为成功运行。让生产者签署其输出,可以明确区分合法的空闲运行与无声失败,将不可见的空白转化为可操作的事件。
问题
Unattended automation pipelines report success even when no work was performed, because the producer silently writes nothing to the queue, making it impossible to distinguish between a legitimate empty run and a silent failure.
结果
By requiring the producer to sign its output, the pipeline gains explicit visibility into why a queue is empty, turning silent gaps into actionable incidents and improving reliability of unattended automation.
工作流
- 1. Producer scans for work items and records the count of examined items, rejected items, and the reason for zero production if applicable.
- 2. Producer writes a signed record (e.g., a log entry or metadata file) describing its findings.
- 3. Consumer opens the queue and processes any items present.
- 4. Consumer checks for the producer’s signature from the current cycle.
- 5. If the signature indicates zero items with a valid reason, consumer exits cleanly; if the signature is missing, stale, or from a previous cycle, consumer marks the run as an incident.
- 6. The pipeline’s summary reflects the explicit state (success, incident, or failure).
证据
The producer is no longer allowed to communicate by absence. It has to sign for its own output, including when that output is nothing.
Signature present and it says zero examined for a legible reason, fine, exit clean. Signature absent, or stale, or from yesterday, and the run is not a success — it is a run that could not establish whether it had work.
- 记录日期: 2026-09-15T13:45:33.774Z