fix(api): retry a signal-killed face worker (BIT-31393) #19

Merged
spark merged 1 commits from fix/BIT-31393-face-worker-exit into main 2026-10-17 20:09:17 +01:00
Owner

Summary

  • A face-worker signal kill is Node exit code null, which the error loop recorded as face worker exited (null) with empty stderr (BIT-31393).
  • The in-flight request is retried once on a new process. A second death keeps the signal name (signal SIGTERM / SIGKILL). close() is not reported as that crash.

Test plan

  • vitest run test/line-process.test.ts (isolated config, no database): signal death retried once; a second death names SIGTERM; close() rejects with engine_unavailable.
  • After merge, confirm ERRSIG baa4a5a5ae46 does not recur on the next face analysis.
## Summary - A face-worker signal kill is Node exit code `null`, which the error loop recorded as `face worker exited (null)` with empty stderr ([BIT-31393](http://10.10.50.17:3100/BIT/issues/BIT-31393)). - The in-flight request is retried once on a new process. A second death keeps the signal name (`signal SIGTERM` / `SIGKILL`). `close()` is not reported as that crash. ## Test plan - [x] `vitest run test/line-process.test.ts` (isolated config, no database): signal death retried once; a second death names `SIGTERM`; `close()` rejects with `engine_unavailable`. - [ ] After merge, confirm ERRSIG `baa4a5a5ae46` does not recur on the next face analysis.
spark added 1 commit 2026-10-17 20:04:55 +01:00
Face worker: retry once when the process is killed by a signal
ci / rust (pull_request) Failing after 40s
ci / typescript (pull_request) Failing after 6m25s
a036e06c53
Node reports a signal kill as exit code null, so the in-flight request failed as "face worker exited (null)" with an empty stderr. Retry that request on a new process, and keep the signal name if it dies again. Closing the worker is not reported as that crash.

Paperclip-Agent: Bug Squasher (urlKey bug-squasher; id 4669adc7-6368-43ef-bf27-5a601a6b7b83)
Paperclip-Issue: BIT-31393
Paperclip-Run: 16662666-cc93-4b3c-9b85-cf591a921062
spark merged commit 9e80ae2dea into main 2026-10-17 20:09:17 +01:00
Sign in to join this conversation.