Files
theHarvester/tests
L1ghtn1ng 55c83df0ef fix(api): harden run worker recovery, child exit codes, and run-now errors
- _child_execute now returns an exit code and the module entry maps it
  to the process status, so a child terminated by an external signal
  exits nonzero; the parent records the run as failed with the partial
  checkpoint attached instead of mistaking leftover evidence for
  terminal completion
- recover_orphans isolates each orphaned run: one unreadable checkpoint
  (schema-passing but structurally broken) no longer aborts recovery of
  the remaining runs or crashes every future startup - the affected run
  is failed without evidence and recovery continues
- _process_output drains child streams to EOF but retains only a
  bounded tail, so a verbose child cannot grow API memory unboundedly
- the execution poll reads the lifecycle row instead of the full detail
  projection every 50 ms
- run-now maps a stale stored run template to a sanitized 503 instead
  of leaking a raw pydantic ValidationError as a 500
2026-09-17 02:05:21 +01:00
..