Recover the Retain Queue
Pi Hindsight enqueues retain jobs before flushing them to Hindsight. This keeps completed agent runs durable during short outages.
Check queue state
Section titled “Check queue state”Open:
/hindsightConfirm:
- queue path is visible
- pending job count is expected
- malformed-line or dead-letter state is not growing
- Hindsight server URL is reachable
Flush queued jobs
Section titled “Flush queued jobs”Use either the TUI flush action or:
/hindsight:flushIf the flush succeeds, pending jobs should fall and recent receipts should update.
If Hindsight is down
Section titled “If Hindsight is down”- Confirm the Hindsight server is running.
- Confirm
HINDSIGHT_BASE_URLor config points at the expected server. - Leave the queue files in place.
- Restart Pi or run
/hindsight:flushafter the server returns.
Do not delete queue files unless you intentionally want to discard pending retain jobs.
If jobs keep failing
Section titled “If jobs keep failing”Inspect status first, then check whether the failure is caused by:
- wrong server URL
- missing API key
- missing or deleted bank
- invalid bank template setup
- malformed queue line quarantined by the queue reader
Create a bug report with redacted status output if the queue cannot recover after the server and bank config are valid.