mipo

Stuck Pending

A scan job has sat in pending status without being claimed for more than 15 minutes. The dispatcher has not handed it to any scanner.

How to

Diagnose

  1. Confirm at least one scanner is heartbeating and active
  2. Check the scanner_id field on the job — if a specific scanner was targeted, that scanner may be down
  3. Check Health > Services > Dispatcher to confirm the dispatcher is running

Repair

  1. Redispatch — sets the job back to pending on the SAME scanner (scanner_id is kept); the dispatcher re-claims it on its next cycle
  2. Or fail the job if it is no longer needed

Gotchas

  • Redispatch re-pends the job to its SAME scanner (scanner_id is not changed) — the dispatcher re-claims it on its next cycle. To move the job to a different scanner, use the separate reassign action (not available for this class).
  • If ALL scanners are offline, redispatch will not help — fix the scanner fleet first.

API calls (1)

MethodPathDescription
POST /api/health/job-errors/:stateId/repair action=redispatch | fail

Related