Files
sure/test
Abhinav Dhiman aafefab65a fix(process-pdf-job): discard on RuntimeError and guard failed status (#2453)
* fix(process-pdf-job): discard on RuntimeError and guard failed status

Add discard_on(RuntimeError) to drop the job immediately instead of
exhausting 25 Sidekiq retries on deterministic errors. The block logs
job_id and message for observability.

Widen the early-return guard from status == "complete" to also cover
"failed", preventing re-processing of already-failed imports.

* fix(process-pdf-job): discard on Provider::Error instead of RuntimeError

* fix(process-pdf-job): log error class name instead of message in discard handler
2026-08-22 04:15:51 +02:00
..